I have the following markup:
<div id="tabbed-content">
<ul>
<li><a href="#section1">Section 1</a></li>
<li><a href="#section2">Section 2</a></li>
</ul>
<div id="section1">
Section 1 is about (...).
</div>
<div id="section2">
Section 2 is about (...).
</div>
</div>
I want to make the markup more semantic, as clearly the div-s are "thematic groupings of content".
But there is a problem. I don't want to put headings of the sections into the section tags but keep them as tabs. I realize that the HTML5 document flow and its presentation are two separate things that I'm mixing here, but I'm not sure how to solve the following problem without some heavy CSS/JS trickery:
<div id="tabbed-content">
<ul>
<li><h1 for="#section1"><a href="#section1">Section 1</a></a></li>
<li><h1 for="#section2"><a href="#section2">Section 2</a></a></li>
</ul>
<section id="section1">
Section 1 is about (...).
</section>
<section id="section2">
Section 2 is about (...).
</section>
</div>
The simplest solution would be to put the headings into the sections and then hide them, but that would be against Google guidelines.
`` inside a ```` if you love semantic :) – Xenos Sep 22 '14 at 19:14