What is the difference between HTML tags
and ?

后端 未结 13 1291
时光取名叫无心
时光取名叫无心 2020-11-22 05:48

I would like to ask for some simple examples showing the uses of

and . I\'ve seen them both used to mark a section of a pa
13条回答
  •  一生所求
    2020-11-22 06:12

    It's plain and simple.

    • use of span does not affect the layout because it's inline(in line (one should not confuse because things could be wrapped))
    • use of div affects the layout, the content inside appears in the new line(block element), when the element you wanna add has no special semantic meaning and you want it to appear in new line use
      .

提交回复
热议问题