123.]; 3. Use the span tag, the code is [< span style="color:red;">]."/> 123.]; 3. Use the span tag, the code is [< span style="color:red;">].">
Home >Web Front-end >CSS Tutorial >How to set font color in css
How to set the font color in css: 1. Use the font tag directly; 2. Use the p tag, the code is [
123.]; 3. Use the span tag, the code is [<span style="color:red;"></span>].
The operating environment of this tutorial: windows7 system, css3 version, DELL G3 computer.
How to set the font color in css:
Method 1. Use the font
tag directly:
<font color='red'>123</font>
Method 2 , use p
tag
<p style="color:red;">123</p>
Method 3, use span
tag
<span style="color:red;"></span>
Finally, method 2, 3 above, you can change the inline style to the class reference style, as follows:
## Recommended related tutorials:
The above is the detailed content of How to set font color in css. For more information, please follow other related articles on the PHP Chinese website!