What's the difference between and , and ?

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

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

22条回答
  •  执笔经年
    2020-11-22 08:57

    b or i means you want the text to be rendered as bold or italics. strong or em means you want the text to be rendered in a way that the user understands as "important". The default is to render strong as bold and em as italics, but some other cultures might use a different mapping.

    Like strings in a program, b and i would be "hard coded" while strong and em would be "localized".

提交回复
热议问题