HTML Font Size

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

Syntax

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 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

Output:

HTML Font Size

Browser Support

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes

Next TopicHTML Image Button




Contact US

Email:[email protected]

HTML Font Size
10/30