Specify the font size, font face and color of text:
![]()
The <font> tag is supported in all major browsers.
The <font> element is deprecated in HTML 4.01.
The <font> tag specifies the font face, font size, and font color of text.
Tip: Use CSS to define the font, size, and color of text.
NONE
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
| Attribute | Value | Description | DTD |
|---|---|---|---|
| color | rgb(x,x,x) #xxxxxx colorname |
Deprecated. Use styles instead. Specifies the color of text |
TF |
| face | font_family | Deprecated. Use styles instead. Specifies the font of text |
TF |
| size | number | Deprecated. Use styles instead. Specifies the size of text |
TF |
The <font> tag supports the following standard attributes:
| Attribute | Value | Description | DTD |
|---|---|---|---|
| class | classname | Specifies a classname for an element | TF |
| dir | rtl ltr |
Specifies the text direction for the content in an element | TF |
| id | id | Specifies a unique id for an element | TF |
| lang | language_code | Specifies a language code for the content in an element | TF |
| style | style_definition | Specifies an inline style for an element | TF |
| title | text | Specifies extra information about an element | TF |
More information about Standard Attributes.
The <font> tag does not support any event attributes.
More information about Event Attributes.
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| Download XML Editor |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|