HTML5ElementsandAttributes-HTML5元素和属性_XHTML教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!
  HTML5 作为 HTML4 和 XHTML 的未来版本,一定有他的魅力所在。

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

  《HTML5 Elements and Attributes》
  http://simon.html5.org/html5-elements

HTML5 Elements and Attributes

<a href hreflang media ping rel target type>
<abbr title>
<address>
<area alt coords href hreflang media ping rel shape target type>
<article>
<aside>
<audio autoplay controls end playcount loopend loopstart src start>
<b>
<base href target>
<bdo dir>
<blockquote cite>
<body>
<br>
<canvas height width>
<caption>
<cite>
<code title>
<col span>
<colgroup span>
<command checked default disabled hidden icon label radiogroup title type>
<datagrid disabled multiple>
<datatemplate>
<dd>
<del cite datetime>
<details open>
<dfn title>
<dialog>
<div>
<dl>
<dt>
<em>
<embed height src type width>
<event-source src>
<figure>
<font style>
<footer>
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
<head>
<header>
<hr>
<html manifest>
<i title>
<iframe src>
<img alt height ismap src usemap width>
<ins cite datetime>
<kbd>
<legend>
<li value>
<link href hreflang media rel title type>
<m>
<map>
<menu autosubmit label type>
<meta charset content http-equiv name>
<meter high low max min optimum value>
<nav>
<nest filter mode>
<noscript>
<object data height type usemap width>
<ol start>
<p>
<param name value>
<pre>
<progress max value>
<q cite>
<rule condition mode>
<samp title>
<script async defer src type>
<section>
<small>
<source media src type>
<span title>
<strong>
<style media scoped title type>
<sub>
<sup>
<table>
<tbody>
<td colspan rowspan>
<tfoot>
<th colspan rowspan scope>
<thead>
<time datetime>
<title>
<tr>
<ul>
<var title>
<video autoplay controls end height playcount loopend loopstart poster src start width>
Defined in Web Forms 2.0
<button accesskey action autofocus disabled enctype form method name replace tabindex template type value>
<datalist data>
<fieldset disabled form>
<form accept accept-charset action data enctype method replace>
<input accept accesskey action alt autocomplete autofocus checked disabled enctype form inputmode list maxlength method min max name pattern step readonly replace required size src tabindex template type value>
<label accesskey for>
<optgroup disabled label>
<option disabled label selected value>
<output for form name>
<select accesskey autofocus data disabled form multiple name size tabindex>
<textarea accept accesskey autofocus cols disabled form inputmode maxlength name readonly required rows tabindex wrap>
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

来源:无忧整理//所属分类:XHTML教程/更新时间:2007-10-28
相关XHTML教程