asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > COLOR Attribute

COLOR Attribute | color Property


Specifies the color to be used by the element.

Syntax

Inline <element color = strColor...>
Script object.color = strColor ]

Possible Values

strColor String that specifies one of the color names or red-green-blue ( RGB ) values in the Color Table.

NOTE: Specifying the color as a color name may not be recognized by some browsers, whereas the RGB color value should always be displayed accurately.

The property is read/write with no default value.

Remarks

NOTE: This attribute has been deprecated in favor of the CSS color property.

Applies To

BASEFONT, FONT, HR



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note