HTML 5 <article> 標(biāo)簽
定義和用法
<article> 標(biāo)簽定義外部的內(nèi)容。比如來自一個外部的新聞提供者的一篇新的文章,或者來自 blog 的文本,或者是來自論壇的文本。亦或是來自其他外部源內(nèi)容。
HTML 4.01 與 HTML 5 之間的差異
<article> 標(biāo)簽是 HTML 5 的新標(biāo)簽。
例子:
<article> <h2>Netscape Is Dead</h2> AOL has now officially announced that they will end the development and support of all Netscape browsers. </article>
提示和注釋:
注釋:<article> 標(biāo)簽的內(nèi)容獨立于文檔的其余部分。
屬性
標(biāo)準(zhǔn)屬性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title
如需完整的描述,請訪 HTML 5 中標(biāo)準(zhǔn)屬性。
事件屬性
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 中事件屬性。