【发布时间】:2014-09-23 17:33:08
【问题描述】:
这个更正在语义上是正确的吗?我在 HTML cmets 中写下了我的疑问以解释我的想法。
<article>
<h2>Movies</h2>
<h4>Genres</h4>
<p>Below you can see the <b>available genres</b>:</p>
<p>1. Action</p>
<p>2. War</p>
<p>3. Comedy</p>
<p>4. Horror</p>
</article>
VS
<section> <!-- Section instead of article? -->
<header>
<h2>Movies</h2>
<h4>Genres</h4><!-- Should i use to h tags inside the same header? http://www.w3.org/TR/html5/sections.html#headings-and-sections. There sais: "h1–h6 elements must not be used to markup subheadings, subtitles, alternative titles and taglines unless intended to be the heading for a new section or subsection. Instead use the markup patterns in the Common idioms without dedicated elements section of the specification."-->
<p>Below you can see the <b>available genres</b>:</p> <!-- <b> or <strong>?-->
</header>
<ol><!-- ol or ul and place the numbers? -->
<li>Action</li>
<li>War</li>
<li>Comedy</li>
<li>Horror</li>
</ol>
</section>
【问题讨论】:
-
是的,看起来很合适。
-
在HTML5中,你可以在任何你想写的地方写cmets。
-
你应该关闭那个
<section>BTW... -
请注意,这个问题与 cmets 无关!