<font> tag in HTML
The <font> tag used to specifies the propreties of text for example: font face, font size, and color.
Important Description
- The <font> tag is not supported in HTML5.
- Use CSS instead, font properties in HTML5.
- Open and close tag required of <font>.
Example of <font> tag
Result Look Like
This is font text first example.
This is font text 2nd example.
<font> Tag Browser Support
All modern and old browser supports <font> tag, the browsers name listed below:
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<font> |
Yes |
Yes |
Yes |
Yes |
Yes |
Optional Attributes
All optional attributes are not supported in HTML5:
Attribute |
Description |
color |
Defines the color of text |
face |
Defines the font of text |
size |
Defines the size of text |