首页 > 编程 > HTML > 正文

HTML5教程:article标签

2024-08-26 00:17:01
字体:
来源:转载
供稿:网友

武林网(www.vevb.com)文章简介:HTML 5 标签

定义和用法

<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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表