HTML - Heading Elements H1, H2, H3, H4, H5 And H6.
- Home
- Articles
-
Prev article
Newer
-
Next article
Older
h1, h2, h3, h4, h5 and h6.
The W3C HTML5 specification describes six HTML heading elements: h1, h2, h3, h4, h5 and h6. ref
The height of a heading element is specified in the browser's default stylesheet. See col 4 below. ref
The height of 1 em is usually 16 pixels.
The em is a unit of measure from the field of printed type, and is equal to the width of the letter M. ref
HTML element | rank | example text | default stylesheet | pixel height |
---|---|---|---|---|
<h1> </h1> | 1 | h1 | font-size: 2em font-weight: bolder | 32 px |
<h2> </h2> | 2 | h2 | font-size: 1.5em font-weight: bolder | 24 px |
<h3> </h3> | 3 | h3 | font-size: 1.17em font-weight: bolder | 18.72 px |
<h4> </h4> | 4 | h4 | font-size: 1em font-weight: bolder | 16 px |
<h5> </h5> | 5 | h5 | font-size: .83em font-weight: bolder | 13.28 px |
<h6> </h6> | 6 | h6 | font-size: .67em font-weight: bolder | 10.72 px |
h2 = 1.5em/24px
h3 = 1.17em/18.72px
h4 = 1em/16px
h5 = 0.83em/13.28px
h6 = 0.67em/10.72px
Normal text height is 1em / 16px.Ads by Google
-
Prev article
Newer
-
Next article
Older
© Richard McGrath
Từ khóa » H1 Vs H4 Html
-
HTML H1 To H6 Tag - W3Schools
-
–
: The HTML Section Heading Elements - MDN - Mozilla
-
H1, H2, H3, H4, H5, H6 HTML - W3schools.blog
-
Header Tags: A Simple (But Complete) Guide To H1, H2 And H3 Tags
-
HTML:
Tag - TechOnTheNet
-
HTML: The H1 To H6 Tags - Khan Academy
-
HTML Heading Tags: The SEO Guide For H1 - H6 - SE Ranking
-
H1 Vs. H2 Heading Tags: Here's The Difference
-
What Are H1, H2, H3, H4, H5, And H6 Tags And How Do They Affect ...
-
XHTML >> Tags >> H1, H2, H3, H4, H5, H6 | DevGuru
-
Heading Tags, What Are They And How To Use? | By Thiago Vaz
-
Counting With HTML5. Should H1, H2, H3, H4, H5 And H6 Be ...
-
What Is The H1 Tag And Why It Is Important For SEO - Reliablesoft
-
H1 Vs H2 Vs H3: What Are Heading Tags And How To Use Them?