Archived topic
Table of Contents simple question
5 replies · Started by nomadiceman on June 6, 2020
Is a table of contents, TOC, simply a list with jump links?
Is there anymore coding required to "tell" google its a TOC?
Basically I want to manually add a TOC to some of my pages and don't want to use a plugin
Thanks for your help guys as usual
Hi there,
yes - just a list of links should be fine. Not sure if it adds much value but you can tell 'google' its a Navigation element by wrapping it in <nav> tags. eg.
<nav>
<ul>
<li><a href="#">A jump link</a></li>
<li><a href="#">A jump link</a></li>
<li><a href="#">A jump link</a></li>
<li><a href="#">A jump link</a></li>
</ul>
</nav>
If you're doing this on a lot of posts then the Table of Contents Plus plugin will save you a lot of time.
that's great thank you
You're welcome
Hi David,
The TOC is an important aspect for SEO, and your remarks would be very useful for non-developers -
Is there any other functions (including SEO) that the Table of Contents Plus plugin adds (besides the styling) which we can incorporate in the lines of the code which you have pasted above so that we manage without using the plugin?
Thanks!
Hi there,
not that i am aware of - on its demo site it outputs a simple list.