這種修正是否正確地在語義上交談?我在HTML註釋中寫下了我的疑惑,以解釋我的想法。HTML5語義轉換
<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>
是的,這似乎是適當的。 – Ryan 2014-09-23 17:41:14
在HTML5中,您可以在任何地方寫評論。 – AvrilAlejandro 2014-09-23 17:41:37
您應該關閉''順便說一下... –
2014-09-23 17:43:59