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
4/9