When to use instead

?

前端 未结 12 2036
故里飘歌
故里飘歌 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:43

    The p tag denotes a paragraph element. It has margins/padding applied to it. A span is an unstyled inline tag. An important difference is that p is a block element when span is inline, meaning that

    Hi

    There

    would appear on different lines when HiThere winds up side by side.

提交回复
热议问题