How to properly use HTML5 section tag
I was informed that I am using HTML5's section tag incorrectly. Can anyone show me the proper way to use HTML5's section tag?
Code:
<div id="content-container">
<div id="form">
<p>
<label class="block">
<input type="text" id="zip" class="normal" type="zip" autocomplete="on" value="zip code">
</label>
<button type="submit" id="submit" value="CHECK NOW" title="check now">check now</button>
</p>
</div><!-- end form -->
<img width="959" height="330" alt="clear form" src="img/widthHero.png"/>
<div id="content">
<section id="noInstall">
<a href="#"><img src="img/noInstall.png" alt="No Installation Appointments" title="No Installation Appointments" /></a>
</section>
<section id="affordable">
<a href="#"><img src="img/affordablePlan.png" alt="Affordable Plans" title="Affordable Plans" /></a>
</section>
<section id="tomorrow">
<a href="#"><img src="img/onlineTomorrow.png" alt="Get Online By Tomorrow" title="Get Online By Tomorrow" /></a>
</section>
<section id="take-w-you">
<a href="#"><img src="img/takeInternet.png" alt="Take It With You Internet" title="Take It With You Internet" /></a>
</section>
<section id="coverage">
<a href="#"><img src="img/cwCoverage.png" alt="City Wide Coverage" title="CityWide Coverage" /></a>
</section>
</div><!-- end content-->
How I use the section tags!
In your code example it looked like something i had setup a few days ago. I don't use <div> anymore in my projects and have moved up to getting standard with HTML5. After your form ends you could just use a list to pump out those links and just slap the list into a <section>. You just had the section too far down the hierarchy. You could do it like this.
Code:
<section id="pwrap">
<section id="formCheck">
<form>
Zip Code: <input type="text" name="fname"><br>
<input type="submit" value="Check Now">
</form>
</section>
<section id="content">
<ul>
<li id="noInstall"><a href="#">(image)</a></li>
<li id="yesInstall"><a href="#">(image)</a></li>
</ul>
</section>
</section>
When you use HTML5 tags it for the most part makes your markup easy to understand and makes more sense. I'm assuming you id'd your sections for another reason? If you need any further help with HTML5 tags just get a hold of me, I am a big supporter. :)