What's the difference between and , and ?

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

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

22条回答
  •  粉色の甜心
    2020-11-22 09:00

    and should be avoided because they describe the style of the text. Instead, use and because that describes the semantics (the meaning) of the text.

    As with all things in HTML, you should be thinking not about how you want it to look, but what you actually mean. Sure, it might just be bold and italics to you, but not to a screen reader.

提交回复
热议问题