HTML 5 <aside> 標簽
定義和用法
<aside> 標簽定義 article 以外的內(nèi)容。aside 的內(nèi)容應該與 article 的內(nèi)容相關。
HTML 4.01 與 HTML 5 之間的差異
<aside> 標簽是 HTML 5 的新標簽。
例子:
<aside>Aside 的內(nèi)容是獨立的內(nèi)容,但應與文檔內(nèi)容相關。</aside>
提示和注釋:
注釋:<aside> 的內(nèi)容可用作文檔的側(cè)欄。
屬性
標準屬性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title
如需完整的描述,請訪 HTML 5 中標準屬性。
事件屬性
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
如需完整的描述,請訪 HTML 5 中事件屬性。