Many friends are very troubled, how to change the font color in HTML? How to set the font color? So today we will introduce to you how to modify the font color in HTML and how to obtain the font color.
First we need to know the html font color setting
In HTML we use the font tag to set the color of the font content.
1. Font syntax:
I am a red font
First of all, font is a pair of regular tags , put the font text content into the label, set the color color + the corresponding color value in the font label to set the font color in the font label object.
htmlFull code of font color example:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>font字体颜色在线实例 DIVCSS5</title> </head> <body> <font color="#FF0000">我是红色字体</font> <table width="300" border="1"> <tr> <td><font color="#0000FF">你好</font></td> <td>DIVCSS5</td> </tr> </table> </body> </html>
If you want to change the font color with this method, you only need to change the color value.
html div css fontColor setting
So to summarize, if you want to set the font color through css style in html, how to do it There are two types, one is in-label CSS and the other is external CSS.
Using external CSS, you can put the CSS code separately into the CSS file and use html link to introduce CSS (html introduces css), or you can use the