Html XHTML5 与 HTML5 有何不同?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1415394/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What differences are expected of XHTML5 versus HTML5?
提问by
What differences are expected of XHTML5 versus HTML5? I understand that XHTML5 is the XML form of the language and HTML5 is the SGML form of the language, which means obvious minor syntax differences. Will there be any further differences? Will XHTML5 deprecate completely worthless elements that were not deprecated by HTML5? Will XHTML5 be written in schema instead of doctype? Will XHTML5 impose structural validations instead of merely stating what is a child of what? Will XHTML5 offer accessibility advantages that not available in HTML5? Will XHTML5 offer any security enhancements?
XHTML5 与 HTML5 有何不同?据我了解,XHTML5 是语言的 XML 形式,HTML5 是语言的 SGML 形式,这意味着明显的细微语法差异。还会有进一步的差异吗?XHTML5 是否会弃用 HTML5 没有弃用的完全无价值的元素?XHTML5 会用模式而不是 doctype 编写吗?XHTML5 会强加结构验证而不是仅仅说明什么是什么的孩子吗?XHTML5 会提供 HTML5 不具备的可访问性优势吗?XHTML5 会提供任何安全增强功能吗?
Please share any knowledge you have about is claimed to be the future of the web?
请分享您对声称是网络的未来的任何知识?
采纳答案by Anne
http://wiki.whatwg.org/wiki/HTML_vs._XHTMLis an attempt to document the differences between HTML5 and XHTML5. As far as I know it is the best available resource on this subject to date.
http://wiki.whatwg.org/wiki/HTML_vs._XHTML试图记录 HTML5 和 XHTML5 之间的差异。据我所知,这是迄今为止关于该主题的最佳可用资源。
回答by Quentin
What differences are expected of XHTML5 versus HTML5?
XHTML5 与 HTML5 有何不同?
The HTML5 "doctype" is not used. The xmlns attribute is required.
不使用 HTML5“文档类型”。xmlns 属性是必需的。
I understand that XHTML5 is the XML form of the language and HTML5 is the SGML form of the language
我明白 XHTML5 是语言的 XML 形式,HTML5 是语言的 SGML 形式
No. HTML5 is not SGML based.
不。HTML5 不是基于 SGML 的。
, which means obvious minor syntax differences.
,这意味着明显的细微语法差异。
No. Just some forms of syntax become forbidden.
不。只是某些形式的语法被禁止。
Will XHTML5 deprecate completely worthless elements that were not deprecated by HTML5?
XHTML5 是否会弃用 HTML5 没有弃用的完全无价值的元素?
No. They are just different serialisations.
不,它们只是不同的序列化。
Will XHTML5 be written in schema instead of doctype?
XHTML5 会用模式而不是 doctype 编写吗?
There are, as far as I'm aware, no plans to have an official schema (or DTD for that matter: the doctype is "A thing to trigger standards mode in browsers" and nothing more).
据我所知,没有计划拥有官方模式(或 DTD:文档类型是“在浏览器中触发标准模式的东西”,仅此而已)。
Will XHTML5 impose structural validations instead of merely stating what is a child of what?
XHTML5 会强加结构验证而不是仅仅说明什么是什么的孩子吗?
No differences from HTML5.
与 HTML5 没有区别。
Will XHTML5 offer accessibility advantages that not available in HTML5?
XHTML5 会提供 HTML5 不具备的可访问性优势吗?
No.
不。
Will XHTML5 offer any security enhancements?
XHTML5 会提供任何安全增强功能吗?
No.
不。