Anchor links for long-form archive pages

A long archive page is an unusual thing to publish. It gathers material from many years, many hands and many formats, and it rarely changes once the last upload lands. Readers arrive through a search result, a shared post in a community Facebook group, or a mention in a local history newsletter, and they land in the middle of several thousand words with no obvious way to orient themselves. Anchor links fix that problem by turning a flat wall of text into a set of addressable rooms.

An anchor link is an ordinary hyperlink whose destination carries a fragment identifier, the string after the hash symbol in a URL. Clicking one does not fetch a new document. It tells the browser to scroll to the element holding that matching ID and, where the element can receive focus, to place the keyboard cursor there. On a long page they behave like a table of contents that travels with the reader, and they let someone send a colleague straight to a single passage instead of asking them to scroll for ten minutes.

Archives add a layer of difficulty. Material on this domain was re-keyed and reformatted over time, so the same sort of section can appear as "Future of Domain Names" on one page and "future of domain names beyond .com" on another. A fragment gives you a stable handle for each section that does not depend on how a heading was typed, what a stylesheet did to it, or how a screen reader announces it.

What follows covers how to lay out anchor links on long archive pages, how to name them so they survive a redesign, how to style them for readers in Australia, and how to connect them to related material held elsewhere on the site. It is written for small community publishers, volunteer editors, librarians and anyone keeping an old website legible rather than merely online.

Why long pages need a working outline

Take a preserved news page with fifteen entries, each running from a headline to a scanned clipping, a byline and three paragraphs of commentary. Scrolling is a poor way to navigate it. A reader who wants the 2019 piece has no idea how far down it sits, and the browser's find function works on text but not on a thumbnail or a table. A short outline of anchor links at the top gives that reader a direct route and gives the archive a navigational spine that still works on a phone screen in a bus queue in Brisbane.

The second benefit is orientation once scrolling starts. A compact bar of in-page links that stays visible while the reader moves down the page, sometimes called a sticky table of contents, keeps the structure in view. Combine it with anchor links and every jump becomes a decision the reader makes rather than a hunt they endure. The bar can show which section is active by styling the :target state, a small trick that makes a page feel like a considered document rather than a dump.

The third benefit is shareability. A fragment is a precise address. You can send one to a researcher, paste it into a forum thread, or cite it in a footnote, and the recipient arrives at the right passage. That kind of address only works if the identifiers are managed deliberately, which is the subject of the next few sections.

Building a contents list that people actually use

Start with the contents list and make it a real navigation element. On this domain, the archived news index is a good model: a dated run of entries, each one naming the piece it leads to. Add a matching list of anchor links above those entries and the index becomes navigable in two dimensions, by date and by subject, without changing anything about the underlying articles.

Write link text that repeats the heading it points to, in that heading's own capitalisation. "Read the review" tells the reader nothing, while "the future of domain names" tells them exactly what they will find. Resist the urge to write "click here" and resist padding labels with keywords. If a section has several sub-parts, give each one a distinct identifier and its own link rather than four links all pointing at the same target.

Keep the list short enough to scan. Fifteen entries suits a news index; a hundred is a table of contents nobody reads. Where a page holds more material than that, split it by period or by collection and link between pages with ordinary URLs, reserving fragments for the in-page structure. Wrap the list in a nav element with an accessible name so screen reader users can skip past it, and put a visible "skip to contents" link at the very top of the document.

Naming fragments so they outlive a redesign

The identifier is the machinery behind the link, so choose it with care. Lowercase letters, hyphens instead of spaces, and no punctuation that a URL might mangle. Keep each identifier unique within the page. Avoid starting one with a digit, since CSS treats a number-led identifier as an invalid selector unless you escape it, which is an annoyance you can skip entirely.

Write identifiers as though they are permanent, because they should be. Renaming a heading is easy; renaming it in the minds of people who bookmarked it three years ago is not. When a heading genuinely has to change, keep the old identifier on the page as an empty anchor with the new one attached, so older links still land in the right place. A plain text file listing every section and its identifier is enough to keep track of the lot.

Once identifiers are settled, the styling choices follow from them. The :target pseudo-class lets you highlight the section a reader has just jumped to. The scroll-margin-top property keeps a section clear of a sticky header, which is otherwise the classic complaint about jump links: you click, the page moves, and the heading hides under the navigation bar. Give focused anchors a visible outline rather than relying on browser defaults, since some readers navigate entirely from the keyboard.

Styling anchors for Australian readers

Australian audiences expect a good deal from government and not-for-profit websites, and that standard applies to community archives too. The Australian Government Digital Service Standard requires agencies to meet WCAG 2.2 level AA, and state and council services work to the same benchmarks. A contents list that screen readers can identify, links with descriptive text, and a working skip link are the baseline rather than the finishing touch. Colour contrast of at least 4.5 to 1 for body text and a clear focus ring matter on ageing hardware and in bright sunlight on a tram platform.

Local habits shape the design as much as the rules do. Plenty of reading happens on a phone with a patchy mobile connection, so keep anchor lists compact, avoid loading anything new, and make sure the list works with a thumb. Australian English spelling in the labels, with organisation, colour and licence used as a noun, keeps an archive consistent with local publications, and day-month-year dates are the norm in Australian newsrooms. Comfortable line lengths and generous spacing suit people reading on a bus between Parramatta and Sydney rather than a desk in an office.

The law sets boundaries as well. The Spam Act 2003 governs commercial electronic messages, which matters when an archive carries partner promotions or gambling-adjacent material, and unsubscribe requests must be honoured. The Privacy Act 1988 and its amendments affect any page collecting names, email addresses or shipping details from readers, so avoid turning a contents list into a tracking mechanism. The Australian Consumer Law applies to sponsored reviews and endorsements, so a jump link to a paid piece should still show its disclosure. The Modern Slavery Act 2018 has made supply-chain statements familiar on Australian business pages, and those statements often sit deep in long documents that deserve a real heading and a working identifier.

Pointing readers towards related archive material

An archive page is rarely an island. Good anchor links sit inside a network: one section points to the next, and both point outward to related collections. When an old thread links to a mirrored page hosted elsewhere, name the destination honestly. A page that survived at the mirrored lobby listing is the sort of reference that turns up in preserved forum discussions, and a sentence saying "a mirror of the original listing" is more useful, and more honest, than a bare address with no explanation at all.

Outbound links should also be dated in the surrounding text. Archive material changes meaning as events move on, so a note such as "as captured in 2019" or "as it read in March 2021" tells a reader which version they are looking at. It also reduces the load on whoever maintains the archive, because the expectation that a link stays current is set plainly rather than left implied.

For internal cross-references, prefer descriptive anchors to generic ones. "The domain review from October 2026" beats "see here". When a section lives on another page, link to that page and include the fragment in the URL, giving the reader a precise landing point on arrival. Resist the temptation to point every jump at the home page, because a link that returns someone to the top of a site they have already seen simply wastes their time.

Keeping anchors working as material changes

Anchors rot quietly. A renamed heading, a migrated content system or a cleaned-up template can break a fragment link without breaking the page around it, which is why the failure often goes unnoticed. Crawl the site every few months with a checker that understands fragments, and check the long pages by hand. One afternoon spent testing a dozen jump targets in a desktop browser and on a phone is usually enough to catch the sticky-header overlap and the duplicated identifier that nothing else will flag.

Long-term stewardship includes the domain itself. Registrations lapse, .com.au names carry eligibility rules set by auDA, and newer top-level domains have changed how people look for archived material. A considered look at future of domain names covers where naming is heading and why continuity of address matters for a collection that people cite. Keeping a domain for decades is a commitment, and keeping its fragments working is part of the same promise.

Keep a short record of what you have promised: a list of pages, their sections, and the identifier attached to each. When something changes, update the record in the same sitting as the edit and leave a redirect for any identifier you retire. Institutions such as the National Library of Australia, through Trove, and the National Archives of Australia have kept this kind of map for decades. Smaller community archives can do the same job with a text file and a habit.

Start small and finish today. Pick the longest page on the site, write a heading for each section worth jumping to, and give every one a simple identifier. Add a contents list at the top, point each entry at its identifier, and check that nothing lands underneath a sticky header. The work takes an hour and permanently improves the way people read what you have kept.

Visitors who want to know more about the domain, read the preserved sections or ask about reusing the material can reach the maintainers through the site's contact details, and the same jump links will guide them once they arrive.