Font Size

Setting the font size is very simple. We set the font size using the font-size property, and its value is typically the size in pixels.

For example:

h3 {
	font-size: 30px;
}

This sets the font size of the third-level heading text to 30 pixels.

Instructions

Set the font size to 42 pixels for the element with the id title.

Set the font size to 32 pixels for the second-level headings (h2).

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

4/9

Font Size | Start Coder