Font Size

The font-size property defines the size of the font:

HTML file: Displayed by browser:
<h1>Default heading.</h1>
<h1 style="font-size:300%;">Supersized heading.</h1>

The font-size is 300% bigger than default size.

Default heading.

Supersized heading.

<p>Default paragraph.</p>
<p style="font-size:24px;">Supersized paragraph.</p>

The font-size is 24 pixels high. (Default is about 16 pixels).

Default paragraph.

Supersized paragraph.

You can use either " % " or " px " values.

Back buttonTable of ContentsNext button