Best practices when using sectioning elements

Best structure for Header tags,
always add a heading to explicit sectioning content:

  1. <body>
  2. <h1>Apples</h1>
  3. <p>Apples are fruit.</p>
  4. <section>
  5.      <h2>Taste</h2>
  6.      <p>They taste lovely.</p>
  7.      <section>
  8.          <h3>Sweet</h3>
  9.          <p>Red apples are sweeter than green ones.</p>
  10.      </section>
  11. </section>
  12. <section>
  13.      <h2>Color</h2>
  14.      <p>Apples come in various colors.</p>
  15. </section>
  16. </body>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s