htmlHow to set font color: 1. Use the font tag, the syntax "font text"; 2. In the label element containing the font text Use the style attribute to add the "color: color value;" style; 3. Use id or class to introduce external CSS font color style to set the html font color, the syntax is "id or class selector {color: color value;}".
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
Method 1: Use the font tag
to specify the font, font size, and font color of the text.
Syntax for setting font color:
字体文本
Example:
Rendering:
##Method 2: Use the style attribute to add the "color: color value;" style
The style attribute specifies the inline style of the element. The style attribute will override any global style settings, such as those specified in theRecommended tutorial: "
html video tutorial