Font Size
Font Size
The font-size
property sets the size of the text.
Always use the proper HTML tags, like <h1> – <h6> for headings and <p> for
paragraphs.
Set Font Size With Pixels
Setting the text size with pixels gives you full control over the text size:
Example
Set Font Size With Em
1em is equal to the current font size. The default text size in browsers is
16px. So, the default size of 1em is 16px.
Example
Use a Combination of Percent and Em
The solution that works in all browsers, is to set a default font-size in
percent for the <body> element: