第04章 section元素

<!DOCTYPE HTML>
<html lang="zh-cmn-Hans">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>

<!--
<section> 标签定义文档中的节(section、区段)。比如章节、页眉、页脚或文档中的其他部分。

<article> 标签规定独立的自包含内容。一篇文章应有其自身的意义,应该有可能独立于站点的其余部分对其进行分发。
<article> 元素的潜在来源:论坛帖子、报纸文章、博客条目、用户评论

<section>
	<h3>标题</h3>
    <p>内容</p>
	<section>
    	<h3>标题A</h3>
        <p>内容A</p>
    </section>
	<section>
    	<h3>标题A</h3>
        <p>内容A</p>
    </section>
</section>

<article>
	<h3>标题</h3>
    <p>内容</p>
	<section>
    	<h3>标题A</h3>
        <p>内容A</p>
    </section>
	<section>
    	<h3>标题A</h3>
        <p>内容A</p>
    </section>
</article>
-->

<section>
	<h3>标题</h3>
    <p>内容</p>
    <article>
    	<h3>标题A</h3>
        <p>内容A</p>
    </article>
	<article>
    	<h3>标题A</h3>
        <p>内容A</p>
    </article>
</section>


</body>
</html>

效果图:

 

猜你喜欢

转载自onestopweb.iteye.com/blog/2258152