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
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week