XHTML 2 Working Group Expected to Stop Work End of 2009, W3C to Increase Resources on HTML 5

2009-07-03 09:38

2009-07-02: Today the Director announces that when the XHTML 2 Working Group charter expires as scheduled at the end of 2009, the charter will not be renewed. By doing so, and by increasing resources in the Working Group, W3C hopes to accelerate the progress of HTML 5 and clarify W3C’s position regarding the future of HTML. A FAQ answers questions about the future of deliverables of the XHTML 2 Working Group, and the status of various discussions related to HTML. Learn more about the HTML Activity. (Permalink)

HTML5

2009-06-29 13:19

尽管HTML5草案最终定稿要在遥远的2012,而最终的标准的正式发布可能会在更遥远的2022,但是还是可以YY一下,听说safari4已经支持HTML5了~···

HTML5主要在嵌入音频、视频、图片的函数、客户端数据存储,以及交互式文档方面增加了很多新的特性,同时也包括新的页面元素,比如 <header>, <section>, <footer>, 以及 <figure>。

同时HTML5还增加了7个标准属性,而不再支持HTML 4.01 中的accesskey属性。

  • contenteditable 设置是否允许用户编辑元素。
  • contentextmenu 给元素设置一个上下文菜单。
  • draggable 设置是否允许用户拖动元素。
  • irrelevant 设置元素是否相关。不显示非相关的元素。
  • ref 引用另一个文档或本文档上另一个位置。仅在 template 属性设置时使用。
  • registrationmark 为元素设置拍照。可规定于任何 <rule> 元素的后代元素,除了 <nest> 元素。
  • template 引用应该应用到该元素的另一个文档或本文档上另一个位置。

当然,也更新了很多事件属性。

  • onabort 发生 abort 事件时运行脚本。
  • onbeforeonload 在元素加载前运行脚本。
  • oncontextmenu 当菜单被触发时运行脚本。
  • ondrag 只要脚本在被拖动就运行脚本。
  • ondragend  在拖动操作结束时运行脚本。
  • ondragenter 当元素被拖动到一个合法的放置目标时,执行脚本。
  • ondragleave 当元素离开合法的放置目标时。
  • ondragover 只要元素正在合法的放置目标上拖动时,就执行脚本。
  • ondragstart 在拖动操作开始时执行脚本。
  • ondrop 当元素正在被拖动时执行脚本。
  • onerror 当元素加载的过程中出现错误时执行脚本。
  • onmessage 当 message 事件触发时执行脚本。
  • onmousewheel 当鼠标滚轮滚动时执行脚本。
  • onresize 当元素调整大小时运行脚本。
  • onscroll 当元素滚动条被滚动时执行脚本。
  • onunload 当文档卸载时运行脚本。