Web Tools Table Maker3schools TranslateImage CompressorFavicon Icon GeneratorCrop & Resize Image
Apu
Apu August 22, 2022 › #Html #Q&A

What are the default font sizes (in pixels) for the html heading tags?

In HTML, there are six type of heading tags. They are h1 to h6.

By default, browsers set different font size to all of them.

h1 is 32px
h2 is 24px
h3 is 18.72px
h4 is 16px
h5 is 13.28px
h6 is 12px

1em equals to 16px.

save
listen
AI Answer
1 Answer
Write Your Answer
  1. Default font size of all of the heading tag.
    h1 { font-size: 2em;}
    h2 { font-size: 1.5em;}
    h3 { font-size: 1.17em;}
    h4 { font-size: 1.00em;}
    h5 { font-size: 0.83em;}
    h6 { font-size: 0.67em;}
    Reply Delete
    Share
loading
back
View All