Results 1 to 4 of 4
Jan 11, 2013, 14:27 #1
Table of Contents in HTML5 - What element to use?
Each of my posts has a table of contents that contains the links to each page or main section in the article.
What are your opinions on which html5 element would be most appropriate as a container for this content? aside, section, nav, details?
Here's the typical markup (currently using a generic div for the container):
<div class="cb-toc"> <h4>Table of Contents</h4> <ul> <li><a href="#/">Compensation Disclosure</a></li> <li><a href="#/2/">Good Faith Recommendations</a></li> <li><a href="#/3/" class="active">Potential Bias and Due Diligence</a></li> </ul> </div>