快捷搜索:

HTML5ElementsandAttributes-HTML5元素和属性

HTML5 作为 HTML4 和 XHTML 的未来版本,必然有他的魅力所在。

对付 HTML5 中的元素和属性到底有哪些,先睹为快:

《HTML5 Elements and Attributes》

http://simon.html5.org/html5-elements

HTML5 Elements and Attributes

Defined in Web Forms 2.0

Global Attributes

class

contenteditable

contextmenu

dir

draggable

id

irrelevant

lang

ref

registrationmark

tabindex

template

title

Event Handler Attributes

onabort

onbeforeunload

onblur

onchange

onclick

oncontextmenu

ondblclick

ondrag

ondragend

ondragenter

ondragleave

ondragover

ondragstart

ondrop

onerror

onfocus

onkeydown

onkeypress

onkeyup

onload

onmessage

onmousedown

onmousemove

onmouseout

onmouseover

onmouseup

onmousewheel

onresize

onscroll

onselect

onsubmit

onunload

Superglobal Attributes

These attributes are allowed on any element. When used on non-HTML elements these attributes have to be namespaced.

repeat

repeat-max

repeat-min

repeat-start

《HTML5 Elements and Attributes》

http://simon.html5.org/html5-elements

您可能还会对下面的文章感兴趣: