What's the difference between and , and ?

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

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

22条回答
  •  一个人的身影
    2020-11-22 08:44

    and are both related to style, whereas and are semantic. In HTML 4, the first are classified as font style elements, and the latter as phrase elements.

    As you indicated correctly, and are often considered similar, because browsers often render both in italics. But according to the specifications, indicates emphasis and indicates stronger emphasis, which is quite clear, but often misinterpreted. On the other hand, the distinction between when to use or is really a matter of style.

提交回复
热议问题