【发布时间】:2014-08-20 16:21:53
【问题描述】:
我发现了很多关于 HTML5 最佳实践的相互矛盾的信息,我想知道我的文章结构是否正确。通常,此站点上的页面由带有导航、文章和页脚的页眉组成。
这是我的基本结构:
<body>
<header>Header content
<nav>Navigation</nav>
</header>
<article>
<header>
<h1>Beans, beans</h1> <!--Main title for article-->
<h2>Good for your heart?</h2> <!--Subtitle for article-->
</header>
<section>
<header>
<h3>Legume-based Flatulence</h3> <!--Section title-->
</header>
<p>Lorem ipsum beans beans beans.</p>
</section>
<section>
<header>
<h3>Gas and Good Feelings</h3>
</header>
<p>Correlation does not imply causation.</p>
<footer> <!--Section footer for sources or...?-->
Source: Phenomenological Farts, a Study in Siena
</footer>
</section>
<section>
<header>
<h3>Beans for Every Meal?</h3>
</header>
<p>This is probably a terrible idea.</p>
</section>
<footer> <!--Article footer for additional downloads, etc-->
<a href="#">Download this article!</a>
</footer>
</article>
<footer>
Footer content.
</footer>
</body>
这有意义吗?在文章的部分中使用页眉和页脚是否可以接受?
【问题讨论】:
标签: html