Font Size

The CSS font-size property can be used to change the size of a text in a html page.

Font Size properties are:

  • font-size: 12px;
  • font-size: 1em;
  • font-size: 150%;

Font Size example:

<html>
<head>

</head>
<body>

Heading 1

Heading 2

Paragraph 1

Paragraph 2

Paragraph 3

</body> </html>

Font Size result:



Heading 1

Heading 2

Paragraph 1

Paragraph 2

Paragraph 3