Answers for "size measure to use in html for font"

19

how to change font size in html

<body>      
         <h1 style="color:red;font-size:40px;">Heading</h1>      
         <p style="color:blue;font-size:18px;">This is demo text</p>    
      </body>
Posted by: Guest on April-29-2020
1

how to increaase font size on html

<font size="+2">This is bigger text.</font>
Posted by: Guest on April-29-2020
0

default font size of html

- The default is 16px.
- If you create an HTML file with any text in it, open it in Chrome, you can check the computed styles.
- I would be interested to see someone test this on mobile versions.

- Edit:- 
As of 2017-03-20, the stable versions of Chrome, Firefox, Edge, and IE on the desktop as well as Chrome, Firefox, and Opera on mobile all default to the de facto standard of 16px for font-size.
Posted by: Guest on November-09-2021

Browse Popular Code Answers by Language