What an anchor link is, how to create one in HTML, WordPress, Shopify, Webflow or Wix, its SEO benefits, and how it differs from anchor text (link text).

In short
An anchor link is a link that sends the reader to a specific section of a page, using a fragment such as #pricing that points to an element with the matching id. You create one in two steps: give the target heading an id, then link to it with href="#that-id". Their SEO effect is indirect: they power tables of contents, can earn "jump to" links in Google results and make long pages easier to use. They should not be confused with anchor text, the clickable words of a link.
Want to go further? Ask
An anchor link, also called a jump link or a link anchor, is one of the oldest features of HTML and one of the most useful on long content. It lets a reader skip to the answer they want instead of scrolling. Google itself treats links as a core signal of how pages relate, and its link best practices stress that links must be real a elements with an href. This guide shows how to create anchor links in plain HTML and in the main CMS, what they do for SEO and for AI answers, and how they relate to anchor text.
An anchor link is a hyperlink whose destination is a location inside a page. The URL ends with a hash sign followed by an identifier, called a fragment: example.com/guide#step-3. When someone clicks it, the browser loads the page (or stays on it) and scrolls to the element whose id is step-3.
There are three common uses:
Search engines treat example.com/guide and example.com/guide#step-3 as the same page. The fragment never creates a new URL to index, so anchor links cannot cause duplicate content.
Two pieces of code are enough: an id on the destination and a link pointing to it.
The old method, <a name="pricing"></a>, still works in browsers but is obsolete in HTML5. Use id on the heading itself. A related feature, text fragments, lets a link highlight a passage without any id, with the syntax #:~:text=, as documented by MDN. Google uses this mechanism when it scrolls visitors to the passage quoted in some featured snippets.
Every major CMS lets you set an id without touching the template. The field name changes from one tool to the next.
| CMS | Where to set the id | How to link to it |
|---|---|---|
| WordPress (block editor) | Select the heading block, open Advanced, fill in "HTML anchor" | Insert a link and type #your-id |
| Shopify | Switch the rich text editor to HTML view and add id="your-id" to the heading | Link to #your-id in the same view |
| Webflow | Select the element, open Element settings, fill in the ID field | Link settings, choose "Page section" or type #your-id |
| Wix | Add an anchor from the Add panel and name it | Link a button or text to that anchor |
| Plugins and themes | Many table of contents plugins create ids from headings automatically | The plugin builds the links |
If your CMS generates ids automatically, check them: some create ids from the full heading text, which produces long, unstable fragments that break when you edit the title.
Anchor links are a usability feature first. Their SEO value is indirect, but it is real on long content:
What anchor links do not do: they do not pass extra authority to a page, since a link to page#section counts as a link to the page, and they do not replace good content. One technical warning comes straight from Google's JavaScript SEO basics: do not use fragments to load different page content, because Googlebot cannot reliably resolve those URLs. Use fragments only to scroll within content that is already on the page.
The two terms are close and often mixed up. An anchor link is about where a link goes (a section). Anchor text is about what the link says (the clickable words). Our glossary entry on anchor text covers the second topic in depth.
| Criterion | Anchor link | Anchor text |
|---|---|---|
| Definition | A link to a section of a page, via #id | The visible, clickable text of any link |
| Example | href="#pricing" | "see our pricing" |
| Main role | Navigation and user experience | Tells users and search engines what the target is about |
| SEO effect | Indirect (jump links, passages, engagement) | Direct relevance signal for the target page |
| Main risk | Broken ids, content loaded through fragments | Over-optimized exact-match anchors on backlinks |
Every anchor link also has anchor text, so the two sets of rules apply together.
An anchor link sends readers to a precise section of a page through a #id fragment. Create it by adding an id to the heading and linking to it, in HTML or through your CMS settings. Its benefits for SEO are indirect but concrete on long content: tables of contents, possible jump links in Google, clearer passages for AI answers and better internal links, as long as the anchor text stays descriptive. If you would rather not structure every article by hand, Sorank, our SEO and GEO software in autopilot, writes structured articles with question headings and internal links and publishes them on your CMS: see the AI blog article generator and try it with a 3-day free trial.
A typical example is a table of contents entry labeled Pricing whose link points to #pricing, which scrolls the reader to the heading that carries the id pricing. From another page, the same section is reached with a URL such as example.com/guide#pricing.
They help indirectly. On long, well-structured pages they can earn "jump to" links in Google results, make precise passages easier to identify for featured snippets and AI answers, and improve navigation. They do not pass extra authority and do not create new indexable URLs.
An anchor link points to a section of a page through a fragment like #pricing. Anchor text is the visible, clickable wording of any link, and it tells users and search engines what the destination is about. Every anchor link has anchor text, so both sets of best practices apply.
THEY TRIED SORANK BEFORE YOU
