paragraph tag not closed?

后端 未结 2 1706
醉话见心
醉话见心 2021-01-22 11:34

I simplified my html code down to this



Who are

2条回答
  •  旧时难觅i
    2021-01-22 11:39

    The meaning of that error message is that the p#whoarewe element was already implicitly closed when the HTML processor encountered the h2 element, so the

    end tag at that particular point seems gratuitous because there is no open p element for the end tag to close.

    So no, your computer is not glitching out. The markup is indeed malformed.

    Depending on what you are trying to accomplish, #whoarewe looks like it should be its own div element or a sectioning element, rather than a p. A paragraph cannot contain a heading; they are two thematically separate structures and cannot exist within the other.

提交回复
热议问题