What's the difference between and , and ?

前端 未结 22 1736
清酒与你
清酒与你 2020-11-22 08:10

What\'s the difference between and , and in HTML/XHTML? When should you use

22条回答
  •  旧时难觅i
    2020-11-22 08:49

    and are explicit - they specify bold and italic respectively.

    and are semantic - they specify that the enclosed text should be "strong" or "emphasised" in some way, usually bold and italic, but allow for the actual styling to be controlled via CSS. Hence these are preferred in modern web pages.

提交回复
热议问题