Specify the font size, font face and color of text:
The <font> tag is not supported in HTML5. Use CSS instead.
The <font> tag specifies the font face, font size, and color of text.
Element | |||||
---|---|---|---|---|---|
<font> | Yes | Yes | Yes | Yes | Yes |
The <font> tag is not supported in HTML5.
CSS Example: Set the color of text
CSS Example: Set the font of text
CSS Example: Set the size of text
In our CSS tutorial you can find more information about CSS text color and CSS fonts.
Attribute | Value | Description |
---|---|---|
color | rgb(x,x,x) #xxxxxx colorname |
Not supported in HTML5. Specifies the color of text |
face | font_family | Not supported in HTML5. Specifies the font of text |
size | number | Not supported in HTML5. Specifies the size of text |