HTML5 <aside> 标签

定义和用法

<aside> 标签定义 article 以外的内容。aside 的内容应该与 article 的内容相关。

HTML 4.01 与 HTML5 之间的差异

<aside> 标签是 HTML5 的新标签。

例子:

<aside>Aside 的内容是独立的内容,但应与文档内容相关。</aside>

提示和注释:

注释:<aside> 的内容可用作文档的侧栏。

属性

标准属性

class, contenteditable, contextmenu, dir, draggable, id, irrelevant, 
lang, ref, registrationmark, tabindex, template, title

如需完整的描述,请访 HTML5 中标准属性

事件属性

onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, 
ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, 
ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, 
onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, 
onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload

如需完整的描述,请访 HTML5 中事件属性

Copyright © 2009-2011 Web前端开发-Web前端工程师 | Web前端学习之路 版权所有