用html5标记一段文章模块

<article>

<header>

<h2>文章标题</h2>

<time datetime=2010-01-24>January 24th, 2010</time>

</header>

<p>文章正文</p>

<footer>

Posted in xxxxx

</footer>

</article>

======================================

注意事项:

1)html5的header和footer标签并非只是用于标记整个网页的头和尾,它是个可重用的元素,可用于任何一个“模块”的头和尾。

2)html5不像xhtml那样要求标签属性一定要放在引号中。

3)html5有time标签用于标记时间,需要注意的是,time标签中的文本是用于展示给用户看的,而标签中还有datetime属性是用于给浏览器看的。

原文地址:https://www.cnblogs.com/cly84920/p/4426642.html