HTML5 is not based on SGML, so what is it based on then?

后端 未结 1 1204
野性不改
野性不改 2020-12-30 04:32

http://www.w3schools.com/tags/tag_doctype.asp

HTML5 is not based on SGML, and therefore does not require a reference to a DTD.

O

相关标签:
1条回答
  • 2020-12-30 05:08

    The HTML5 standard specifies two serializations of HTML5: "html" and "xml". "xml" is a valid XML serialization (which in turn is a subset of SGML). "html" is not based on any specific serialization standard anymore, it has its own complete serialization. Herein lies the difference: HTML4 has a "sgml" serialization and "xml" serialization (called XHTML 1.0)

    Of course HTML5 is for a large part based on HTML4 (based on SGML) and XHTML (based on HTML4 and XML).

    Also see the history section of the HTML5 specification

    0 讨论(0)
提交回复
热议问题