What are anchor links?
Anchor links are small but effective navigation points that make a web page far more user-friendly. Think of them as internal shortcuts that take the user directly to selected sections on the same page. Instead of having to scroll through long texts, the user can click a link and land straight on the relevant section. This makes a particular difference on text-heavy pages, where you want the reader to find the information they're looking for quickly.
In practice, an anchor link consists of two parts: the anchor, which marks a point on the page, and the link, which points to that point. When you click an anchor link, the browser automatically moves the view down to where the ID is placed. The page doesn't reload, which saves time and creates a smoother experience.
In other words, anchor links make it easier to organise complex content. They help the user find their way around, and you, as the publisher, can structure information more effectively. That applies to blog posts, product guides and other pages where you work with content and want to keep accessibility high.
How do you use anchor links?
An anchor link consists of two parts: an HTML ID and a link that points to that ID. You don't need advanced coding, and in most CMSs you can do it directly. In its simplest form, an anchor is an identifier in your HTML code. You typically place it on a heading or a specific spot where the user should land.
A basic example looks like this:
<h2 id="contact">Contact</h2>
<a href="#contact">Go to the contact section</a>
When the user clicks the link, the view jumps straight down to the heading with the ID contact. You use the same method when you create a table of contents with links to the different sections on the page. Many people choose to style anchor links with a visual cue, so the user can clearly see where they can navigate to.
If you work with digital design or UX, anchor links can improve the flow of the page. Combined with a well-thought-out design, they help the user understand the page's structure. The content also becomes more SEO-friendly, because search engines can more easily interpret the hierarchy between the sections.
Why you should use anchor links
Anchor links give long pages clear navigation logic. The user gets to the content they're looking for faster, which can lower the bounce rate and increase time on site. This matters especially now, when many visitors read on mobile and expect quick access to what's most relevant.
Anchor links matter for SEO too. They help search engines understand how the content fits together internally. If you work with structuring content, e.g. in pillar pages and topic clusters, anchor links let you divide the information into clear subsections. This improves the user experience and helps Google index the page more precisely. When you combine the technique with a well-considered content strategy or a thorough keyword structure, you lift your overall performance in the search results.
You can also tie anchor links in with your conversion optimisation work. In a long blog post or a product guide, links work as quick “jump points” to relevant sections, such as contact forms or CTAs. Navigation becomes easy, and the reading experience continues without interruption.
What types and variants are there?
There are several ways to use anchor links. The choice depends on how your page is structured and what you want to achieve. The most common are:
- Intra-page links: The classic anchor links that take the reader between sections on the same page. You typically find them in articles, FAQs and tables of contents.
- Inter-page links: Links that point from one page to an anchor on another page. Here you typically write a full URL followed by a
#and the anchor name. - Menu links: You'll come across these especially on “one-page” websites, where the navigation in the top menu jumps between sections on the same page.
On the other hand, avoid anchor links in emails. Many email clients remove them automatically, so it's better to link directly to a web page.
How do you use anchor links in practice?
Build anchor links in from the moment you structure your content. In CMSs like WordPress, you give your headings unique IDs, and the link then points to that ID. It's a simple way to create content that's easy to navigate and easy for search engines to understand. Systems like HubSpot have dedicated tools that let you insert anchors directly in the editor without touching the code.
If you combine anchor links with web analytics, you can measure how users interact with them. For example, you can track which sections get the most clicks and how those clicks affect the user's journey through the page. The figures show you which messages to prioritise and how to adapt your content.
Anchor links also affect technical performance. Google PageSpeed Insights can flag empty anchor tags as errors, so always use ID attributes rather than empty links. It helps both your SEO and the technical quality of your site.
What should you watch out for?
Anchor links are simple to create, but they need to be used with care. Choose distinct IDs that only appear once on the same page, and name them consistently, so you avoid broken links. Too many anchor points can also feel overwhelming for the user, so plan the structure based on the actual information architecture.
Test your anchor links regularly, especially when you change headings or layout. A broken anchor link can confuse the user and undermine trust. The goal is a seamless experience where design, content and technical setup work together. That applies whether you work with SEO optimisation, web design or content production.