HTML5不是基于SGML,那么它是基于什么呢? [英] HTML5 is not based on SGML, so what is it based on then?

查看:264
本文介绍了HTML5不是基于SGML,那么它是基于什么呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

HTML5不是基于SGML,因此不需要引用DTD.

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

如果不是基于SGML,HTML 5是基于什么标准的?

On what standard is HTML 5 based on if not on SGML?

推荐答案

HTML5标准指定了它具有自己完整的序列化.区别在于:HTML4具有"sgml"序列化和"xml"序列化(称为XHTML 1.0)

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)

当然,HTML5在很大程度上基于HTML4(基于SGML)和XHTML(基于HTML4和XML).

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

另请参见HTML5规范的历史部分

Also see the history section of the HTML5 specification

这篇关于HTML5不是基于SGML,那么它是基于什么呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆