Why the HTML paragraph

behaves so oddly on my chrome?

前端 未结 4 1950
粉色の甜心
粉色の甜心 2021-02-20 02:54

Get an empty HTML, type in this and see its source code on Google Chrome:

 
WHY?

If you did i

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-20 03:22

    Nesting a div in a p is invalid HTML. I would guess that Chrome is just trying to correct it for you.

提交回复
热议问题