In this tutorial you will learn about the HTML Fonts and its application with practical example.
HTML <font></font> tags is used to specify the size, color, and face of the text presented on the HTML Document.
Table Of Contents−
Note:- The font tags is deprecated and removed in HTML5.
Here is list of basic attributes for <font></font> tag –
| Attribute | Value | Description |
|---|---|---|
| color | #RRGGBB or #RGB
rgb(rrr%,ggg%,bbb%) or rgb(rrr,ggg,bbb) colorname |
This attribute specifies the color of text |
| face | ont_family | This attribute specifies the font of text |
| size | Number | This attribute specifies the size of text |
Example:
|
1 |
<font face="arial,helvetica" color="red" size="+1">This is example text</font> |
Output:
This is example text
