Anchor is a table of contents for one page: a list of links to its sections, with the section in view highlighted as the reader scrolls.
Use it when the page is long enough that readers lose their place, and every link goes to a heading on that page. Use something else when:
- The links go to other pages. Use Menu. Anchor treats every href as an id on the current page, so a link elsewhere never scrolls or lights up, and nothing tells you.
- The sections are not all on the page at once. Use Tabs. Anchor can only track sections that are rendered.
- The page fits in a screen or two. A rail of three links takes a column and saves no scrolling.