How to set the default font size for html5
This article mainly explains how to set the default font size of html5. Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to set the default font size of html5.
In html5, the default font size varies from browser to browser, and the default font size for most browsers is 16px; you can use the style and "font-size" properties to set the font size with a syntax of "".
This article operating environment: Windows10 system, html5 version, Dell G3 computer.
What is the default font size for html5
The default font size for most browsers is 16px. You can set the font-size of CSS to change the font size.
Html,body {font-size: 16px;}
You can also set font-size:62.5%, to make 1rem = 10px to set the font size.
Calculating floating point numbers for fonts in IE browsers is not accurate, so it can be set to font-size:63%.
Examples are as follows:
Documentpx
Px
Output result:
At this point, I believe that everyone on the "html5 default font size how to set" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!