Log in from a computer to take this course

You'll need to log in from a computer to start Learn CSS. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store
Learn

Changing the typeface isn’t the only way to customize the text. Oftentimes, 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, which is one way to measure font size.

Instructions

1.

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

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?