Why is H2 larger than H1?

后端 未结 3 1103
闹比i
闹比i 2021-02-01 12:34

In the following code snippet, why is the H2 content larger than the H1 content?

First H

3条回答
  •  清歌不尽
    2021-02-01 13:06

    If you don't specify any style, your browser will choose its default style. In the first example the h1 and h2 are inside an header in a section, while in the second case they are in the root. Then it is admissible that the behaviour is different.

提交回复
热议问题