asp.net.ph

Skip Navigation Links

COLOR Attribute | color Property

Language References


Sets the default color for text in a document.

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



© 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