H1-H6 font sizes in HTML

前端 未结 11 530

In HTML (and in typography in general, I suppose), there appears to be some defined sizes for H1-H6 -elements.

Ie., if the baseline font size is 16px (or 100%), then h1

11条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-29 22:32

    Some nominal figures:

    Default style sheet for HTML 4:

    • h1: 2em
    • h2: 1.5em
    • h3: 1.17em
    • h4: 1em
    • h5: 0.83em
    • h6: 0.75em

    Firefox 3 and Safari 4 (actually, WebCore):

    • h1: 2em
    • h2: 1.5em
    • h3: 1.17em
    • h4: 1em
    • h5: 0.83em
    • h6: 0.67em

提交回复
热议问题