HTML 5
2007-12-03 22:31:49
HTML3到4变化巨大,4到5会更大,估计很多人心理上不大会接受:html 4 + 已经很强大了,为何要搞一套新东西呢?
摘自 http://www.crockford.com/html/
No more doctypes. Great,我从来就没有完全搞清楚那些doctype
script
一个html只支持一种类型的script了(微软搞的ie能同时并存js,vbs,还能互相调用,绝对是专家级的技术),<script>没有属性了
<script>
tags are not immediately executed. <script>
tags do not block loading of other assets.
When the </head>
is reached, all of the scripts that were included in the head are then executed in order. When the </body>
is reached, all of the scripts that were included in the body are then executed in order.
明确了
No more document.write
. No more in-page event handlers. No more :
urls.
支持,难看的document.write
Frame
No more framesets, frames, or iframes. The security properties of these were problematic. Instead we'll have modules.
如何实现类似frame呢?看Modules
Modules
<module>
creates a sub-tree which can contain a document with a communication channel. See http://json.org/module.html for a description.
似乎是iframe+ ajax,更强大了
CSS
The default CSS content needs to be standardized.
现在的css太复杂了,实现一个功能没有人说清楚一共有多少种实现
Encoding
The only character encoding permitted in HTML 5 is UTF-8
.
HOHOHO
Entities, Empty Tags, Custom Tags, Custom Attributes
.......