Why HTML 5 still have support for Presentational elements?

后端 未结 3 488
我寻月下人不归
我寻月下人不归 2021-01-18 03:14

See list here:

http://www.w3schools.com/html5/html5_reference.asp

like , ,
,


3条回答
  •  借酒劲吻你
    2021-01-18 03:55

    Two reasons come to mind:

    1. Because some people (not me, here is a primer about this opinion and here are the WHATWG FAQ about this) don't think of them as presentational. They argue, that has semantics of its own, for example, where is not right and the text should be bold anyways (IMHO therefore we have )

    2. Because HTML5 has a pragmatic and backwards compatible approach: What worked in HTML4 should work too in HTML5. They argue, that this is why XHTML2 died.

提交回复
热议问题