Javatpoint Logo
Javatpoint Logo

HTML Font Size

The Size is an attribute of <font> tag, which specifies the text size.


In the above syntax, the number is a value of the Size attribute, which denotes the text size. The number for the font size is lies between the 1 and 7. By default, the font size of a text on a web page is 3.

Note: The size attribute of <font> tag is not supported in HTML5. We can use CSS instead of it.

Example 1: The following example uses the different numbers from 1 to 7 as the size of a text:

Test it Now


HTML Font Size

Browser Support

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<font size="">YesYesYesYesYes

Next TopicHTML Image Button

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA