1.在html发展历史中,最广为人知的是html3.2和html4.01.
2.将html与xml的长处加以结合,从而得到xhtml,xhtml是更严格、更纯净的html代码。
3.W3C组织使用DTD(Document Type Definition,文档类型定义)来定义html和xhtml的语义约束,包括出现那些元素,支持哪些属性。
4.html5是规范制定者对现实的妥协。
--------------------------------------分割线 --------------------------------------
--------------------------------------分割线 --------------------------------------
5.HTML5的优势
1>主流浏览器:IE(9)、chrome、firefox(firefox4)、opera(opera10)、safari(safari5)
2>部分替代了原来的js:如自动获取焦点:autofocus name=price>
3>更明确的语义支持:代替清一色的div页面结构
- Home
- Contact
Title Goes here
Posted on by Author - 12 comments
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Article title
Posted on by Author - 9 comments
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Contact Us
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
Copyright 2012 DigiMantra Labs
上述 可以简化为
元素表示被强调,可以用以下:
被标记的文本
4>增强了web应用程序的功能
6.html5的基本结构:
: DTD定义
基本结构像5.3>代码所示
7.html5的语法变化
1>标签不再区分大小写
2>元素可以省略结束标签
eg:img、input、hr、embed、link、p、tr、td、th、thead、tbody等,可以省略全部标签的元素:html、head、body、tbody。
3>可以省略属性值得属性
eg:selected、disabled、checked、readonly、multiple、nowrap等
4>允许属性值不使用引号(含有空格等容易引起浏览器混淆的属性值建议用引号)
8.注意:
不要在和
之间插入任何内容!不要在和
之间插入任何内容!不要在和之间插入任何内容!