HTML5教程中的article标签使用

【字号: 日期:2024-09-06浏览:22作者:雯心
HTML5教程中的article标签使用 HTML5教程中的article标签使用定义和用法

<article> 标签定义外部的内容。比如来自一个外部的新闻提供者的一篇新的文章,或者来自 blog 的文本,或者是来自论坛的文本。亦或是来自其他外部源内容。

HTML 4.01 与 HTML 5 之间的差异

<article> 标签是 HTML 5 的新标签。

例子:<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> 标签的内容独立于文档的其余部分。

属性标准属性class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title事件属性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教程中的article标签使用,希望大家喜欢,请继续关注乐呵呵网。
相关文章: