table of contents
Also called: TOC, jump links, anchor links, in-page navigation
A table of contents (TOC) in SEO is an on-page list of anchor links that jump to sections of the same page, built with URL fragments (#section) tied to id attributes on your headings. It helps readers navigate long content and can prompt Google to show "jump to" links under your search result.
A TOC turns a long page into something skimmable. Each entry is a fragment link like <a href="#pricing">Pricing</a> pointing to a heading that carries a matching id: <h2 id="pricing">Pricing</h2>. Click it and the browser scrolls straight to that section. The links must use bare fragments (#pricing), not full paths (/guide/#pricing), or the pattern breaks.
Why it shows up in search
Google generates sitelinks and section links automatically by analyzing a page’s link structure, so you cannot force them. A clean fragment-based TOC gives Google the raw material: named anchors it can surface as “jump to” links beneath your listing, often using your subheading text as the label. Sebastian Klein notes Google “has the final say,” and whether the links appear “will largely depend on the user’s search query.” Treat it as an enhancement, not a guarantee.
There is a second payoff. Breaking a page into clearly labeled, anchored sections makes each passage easier for search engines and AI answer engines to isolate and quote. The same structure that earns a jump link also helps a specific section get pulled into a featured snippet or an AI Overview.
Practical rules: add a TOC only on genuinely long, multi-section pages; write descriptive anchor labels (not “Section 2”); keep ids stable so links and any earned SERP features do not break when you republish.
How it affects your traffic
A fragment-based TOC can expand your organic result with extra jump-to links, taking up more SERP space and giving users more reasons to click through to the exact section they need. It also improves navigation and dwell on long service and guide pages, both signs of a well-structured page. Getting the heading hierarchy, ids, and anchor labels right is core on-page work, which is what our On-Page SEO service handles.
Get On-Page SEO that moves the needle
We turn terms like this into ranked pages and qualified pipeline. Start with a free Initial SEO Strategy.