Learn
CSS Visual Rules
Font Size

Changing the typeface isn’t the only way to customize text. Often times, different sections of a web page are highlighted by modifying the font size.

To change the size of text on your web page, you can use the font-size property.

p { font-size: 18px; }

In the example above, the font-size of all paragraphs was set to 18px. px means pixels and is a way to measure font size.

Instructions

1.

In style.css, set the font-size of paragraph elements to 18 pixels.

Folder Icon

Take this course for free

Already have an account?