您的位置:首页 > 图文教程 > HTML5教程中的article标签使用 返回首页

HTML5教程中的article标签使用

时间:2012-08-30 09:43:38  作者:彭老师

Pro/E5.0产品设计视频教程_软件自学网  AutoCAD2011机械视频教程_软件自学网

定义和用法

<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和CSS3令设计师心动的新特征
下一个教程:HTML5教程中的HTML 5<!DOCTYPE>标签