Which is more correct:

OR

前端 未结 7 1180
甜味超标
甜味超标 2020-11-28 05:21

Are both

...

and

...

valid HTML, or is only one correct
7条回答
  •  星月不相逢
    2020-11-28 05:55

    H1 elements are block level elements, and anchors are inline elements. You are allowed to have an inline element within a block level element but not the other way around. When you consider the box model and the HTML spec this makes sense.

    So in conclusion the best way is:

    Link

提交回复
热议问题