Available as an attribute on the <font> element (as well as on several MathML elements), this attribute names a color in which the text should be displayed or printed.


Usage of this attribute is discouraged. The attribute was inherited as part the XHTML table model and the MathML Tag Set. If used at all, it should be restricted to table cells and equations. See also documentation for the Mathematical Markup Language (MathML) 2.0 Tag Set.

Attribute Values

In Element

<font> Font
Value Meaning
Text, numbers, or special characters The name of a color, typically as a color-code understood by CSS and typical browsers
Restriction: This attribute may be specified if the element is used.