HTML font colorThe Color is an attribute of <font> tag, which specifies the text color. SyntaxWe can specify the text color with the following different attribute values:
Example:
Example:
Examples: The following examples use the different value of color attribute: Example 1: The following example uses the name of a color: Test it NowOutput: Example 2: The following example uses the hex code for defining the text color: Test it NowOutput: Example 3: The following example uses the rgb number for defining the text color: Test it NowOutput: Example 4: The following example uses all the attribute values for the font color. Test it NowOutput: Browser Support
Next TopicHTML Font Size
|