Web Tools Table Maker3schools TranslateImage CompressorFavicon Icon GeneratorCrop & Resize Image
Apu
Apu August 21, 2022 › #Element #Html

What is the default heading size in HTML?

HTML provides us 6 level heading. They are used to define the heading or subheading of a webpage.

By default, all browsers set different font sizes to all heading tags.

Heading TagFont-size (em) Font-size (px)
<h1> </h1>2em32px
<h2> </h2>1.5em24px
<h3> </h3>1.17em18.72px
<h4> </h4>1em16px
<h5> </h5>0.83em13.28px
<h6> </h6>0.75em12px
1em = 16px
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
Try it Yourself »
save
listen
AI Answer
Write Your Answer
loading
back
View All