Click here to navigate the course.

Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Code Editor
Web Browser

Font Size I

Changing the typeface isn't the only way to customize text. Often times, different sections of a web page and 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. What exactly does px mean?

Measurements require units in order for them to be useful (for example kilograms for weight, or miles for distance). Font size also requires a unit of measurement.

In the next exercise, we'll explore in detail the units of measurement available for font size.

Report a Bug
If you see a bug or any other issue with this page, please report it here.