CSS Fonts
Font Size
The font-size property specifies the size of the font. The font size can be specified in pixels, ems, or relative units.
For example, the following CSS rule will set the font size of all <h1> elements to 24px:
h1 {
font-size: 24px;
}
The following CSS rule will set the font size of all <h1> elements to 1.5em:
h1 {
font-size: 1.5em;
}
Task
Change the font size of the h1 element to 36px by adding a combinator selector header h1. Run the code to see the results and experiment with the code to get used to it.