I'm trying to figure out how to correctly markup up a navigation with collapsable sections using HTML5 and ARIA.
This is what I've got so far:
<nav>
<h2 id="heading-overview" aria-controls="section-overview">Overview</h2>
<ul id="section-overview" aria-labeledby="heading-overview" aria-expanded="false">
<li><a aria-selected="true">Layout</a></li>
<li><a>Color Schema</a></li>
</ul>
<h2 id="heading-typography" aria-controls="section-typography">Typography</h2>
<ul id="section-typography" aria-labeledby="heading-typography" aria-expanded="false">
<li><a>Sizes</a></li>
<li><a>Colors</a></li>
<li><a>Types</a></li>
</ul>
</nav>
For me, this seems like a big amount of attributes. Could it be that I am attaching attributes that is otherwise implicit in the markup? Or could I label it in some other way?