Font Size

The font-size property sets the size of the text. Being able to manage the text size is important in web design. However, you should not use font size adjustments to make paragraphs look like headings, or headings look like paragraphs. Always use the proper HTML tags, like <h1> - <h6> for headings and <p> for paragraphs.


The font-size value can be an absolute, or relative size.

Absolute size:

Relative size:


Note: If you do not specify a font size, the default size for normal text, like paragraphs, is 16px (16px=1em).

Back button Table of Contents Next button