时间:2021-07-01 10:21:17 帮助过:33人阅读
https://www.gxlcms.com/ 实际上,html5并不是由w3c直接制定的,w3c的方向是xhtml2,而不是html5。当xhtml2脱离现实,无法付诸实践时,w3c工作组才将研究方向转向html5。为什么xhtml2从未落到实处?因为它违反了一条设计原理,这条设计原理就是著名的伯斯塔尔法则——发送时要保守;接收时要开放。而在html5设计过程中遵循了一系列原则,才使得html5得以快速推广。本文将介绍html5遵循的6个设计原则
https://www.gxlcms.com/ html4
"https://www.gxlcms.com/-//W3C/DTD HTML 4.01//ENhttps://www.gxlcms.com/" https://www.gxlcms.com/"https://www.gxlcms.com/http://www.w3.org/TR/html4/strict.dtdhttps://www.gxlcms.com/">
https://www.gxlcms.com/ html5
https://www.gxlcms.com/ html4
"https://www.gxlcms.com/Content-Typehttps://www.gxlcms.com/" content=https://www.gxlcms.com/"https://www.gxlcms.com/text/html; charset=utf-8https://www.gxlcms.com/">
https://www.gxlcms.com/ html5
"https://www.gxlcms.com/utf-8https://www.gxlcms.com/">
以下四段代码,在xhtml中只有第一段是正确的;而在html5中,所有的都是正确的
"https://www.gxlcms.com/https://www.gxlcms.com/foohttps://www.gxlcms.com/" alt=https://www.gxlcms.com/"https://www.gxlcms.com/barhttps://www.gxlcms.com/" />class=https://www.gxlcms.com/"https://www.gxlcms.com/https://www.gxlcms.com/foohttps://www.gxlcms.com/">Hello world
"https://www.gxlcms.com/https://www.gxlcms.com/foohttps://www.gxlcms.com/" alt=https://www.gxlcms.com/"https://www.gxlcms.com/barhttps://www.gxlcms.com/">class=https://www.gxlcms.com/"https://www.gxlcms.com/https://www.gxlcms.com/foohttps://www.gxlcms.com/">https://www.gxlcms.com/Hello world "https://www.gxlcms.com/https://www.gxlcms.com/foohttps://www.gxlcms.com/" ALT=https://www.gxlcms.com/"https://www.gxlcms.com/barhttps://www.gxlcms.com/">
"https://www.gxlcms.com/https://www.gxlcms.com/foohttps://www.gxlcms.com/">Hello world
class=https://www.gxlcms.com/foo>Hello world
https://www.gxlcms.com/ 在html4中,即使两个块级元素元素有相同的链接地址,也必须分开写,因为内联元素不能包含块级元素
"https://www.gxlcms.com//path/to/resourcehttps://www.gxlcms.com/">Headline text
"https://www.gxlcms.com//path/to/resourcehttps://www.gxlcms.com/">Paragraph text.
https://www.gxlcms.com/ 而在html5中,由于使用了内容模型,元素也可以包含块级元素
"https://www.gxlcms.com//path/to/resourcehttps://www.gxlcms.com/">Headline text
Paragraph text.
html5新增了多个元素,其中包括:section、article、aside和nav,它们代表了一种新的内容模型——给内容分区。以前人们一直都在用div来组织页面中的内容,但与其他类似的元素一样,div本身并没有语义。但section、article、aside和nav实际上是在明确地告诉你——这一块就像文档中的另一个文档一样。位于这些元素中的任何内容,都可以拥有自己的概要、标题,自己的脚部。
浏览器在遇到不识别的type值时,会将type的值解释为text
input type=https://www.gxlcms.com/"https://www.gxlcms.com/numberhttps://www.gxlcms.com/"https://www.gxlcms.com/ input type=https://www.gxlcms.com/"https://www.gxlcms.com/searchhttps://www.gxlcms.com/"https://www.gxlcms.com/ input type=https://www.gxlcms.com/"https://www.gxlcms.com/rangehttps://www.gxlcms.com/"https://www.gxlcms.com/ input type=https://www.gxlcms.com/"https://www.gxlcms.com/emailhttps://www.gxlcms.com/"https://www.gxlcms.com/ input type=https://www.gxlcms.com/"https://www.gxlcms.com/datehttps://www.gxlcms.com/"https://www.gxlcms.com/ input type=https://www.gxlcms.com/"https://www.gxlcms.com/urlhttps://www.gxlcms.com/"
一旦遇到冲突,最终用户优先,其次是作者,其次是实现者,其次标准制定者,最后才是理论上的完满。