OK to have text in div without paragraph tag?

后端 未结 2 389
悲&欢浪女
悲&欢浪女 2020-12-29 02:29

I\'m trying to understand the utility of the

tag. I want to write less HTML, and am always for simplifying things in general, but feel like I heard s

2条回答
  •  醉梦人生
    2020-12-29 03:18

    Yes, it is ok to use a

    element without

    .

    A

    would tell that the text within a

    element is split into paragraphs, thus if you have text split into paragraphs, you should use

    ; on the other hand, a

    cannot contain elements other than so-called phrasing content; thus you cannot have a

    inside a

    .

提交回复
热议问题