Table of contents

A list of links to the sections of a long document, each one jumping to its place on the page.

Also called: table of contents, toc, contents, outline, article outline, in this article, on this page, jump links, anchor links, anchor menu, section menu, scrollspy

What it is for

It makes a long piece easier to navigate by letting you jump straight to the part you need. On desktop it is often pinned in a sidebar and highlights the current section as you scroll.

Where you see it

  • Technical documentation — a quick jump to the right section
  • Blog posts — an outline of the article before the text
  • Wikis — the contents of a long article

What it is called in code

  • <a href="#section">
  • table of contents
  • scrollspy

See also

  • Link — Clickable text that takes you to another page, or to another spot on the same page.
  • Back-to-top button — A floating button, usually with an up arrow, that takes you back to the top of the page.
  • Accordion — A vertical list of headings. Click one to open or close the content hidden under it.