When to use instead

?

前端 未结 12 1986
故里飘歌
故里飘歌 2020-11-30 20:53

As the question indicates, if I have some text that I want to add in the HTML then when should I use

and when should I use ?<

12条回答
  •  一向
    一向 (楼主)
    2020-11-30 21:36

    Semantically speaking, a p is a paragraph tag and should be used to format a paragraph of text. A span is an inline formatting change that isn't handled semantically.

提交回复
热议问题