Search Intelligence 12 min read September 12, 2026

Create and Check Your First Website Anchor Link

VJ
Vikas Jha
Create and Check Your First Website Anchor Link
Search Intelligence

A visitor looking for your pricing should not have to work through your entire services page to find it. A section link can take them there. The important part is the arrival: the heading needs to be visible, the section needs to answer the promised question, and the link needs to work when someone opens it directly.

You can build a basic jump link with two pieces of HTML. The same relationship sits behind the anchor fields in a visual website editor.

What Are Website Anchors?

The word anchor can refer to several related things. In HTML, the <a> element with an href attribute creates a hyperlink. That link can lead to another page, a file, an email address, or a location within a page. Here, website anchors means the destinations and links used for that last job: jumping to a section. MDN’s anchor-element reference explains the broader element.

These two lines show the relationship:

<a href="#pricing">View pricing</a>
<h2 id="pricing">Pricing</h2>

id="pricing" names the destination. href="#pricing" tells the link to find that destination in the current page. The #pricing part is a fragment: a reference to a location within the document. View pricing is the anchor text, meaning the visible, clickable words. It can use normal capitalization; it does not have to copy the ID character for character.

The link’s fragment and the destination ID must match. The visible label should explain the destination to the reader. Changing the label to “See our pricing” can leave the jump working; changing the destination ID without updating the link can break it.

When Does a Section Link Help?

Use a jump link when someone needs a particular part of an existing page. A table of contents can help readers choose a topic in a long guide. A question list can lead to answers further down an FAQ. A “View pricing” link can reach pricing lower on a service page. The link can also arrive from another page or a shared message.

Make the destination recognizable. “On this page” helps explain a section menu, and its labels should match or clearly describe the headings below. A visitor should understand why the page moved.

A short page may need no jump links. If visitors must read an explanation in order, a shortcut that skips essential context may be unhelpful. If the page combines several unrelated tasks, clearer editing or separate pages may serve readers better. Nielsen Norman Group’s in-page-link guidance discusses these choices and the risk of fixed navigation covering the destination.

A section link also cannot reveal content that your site keeps inaccessible inside an unopened component unless that component supports the behavior. For a first implementation, choose a normal, visible heading and its content.

How to Create an Anchor Link

Start with one link and one destination. The following method uses HTML. If you use the WordPress Block Editor, build the pair with the alternative WordPress route below, then use Steps 3 and 4 for the shared checks. You do not need to create it twice.

Step 1: Choose and Name the Destination

Choose the heading visitors should see when they arrive. Add an ID to that element:

<h2 id="pricing">Pricing</h2>

Use a short, stable name. Lowercase words with hyphens, such as implementation-costs, are a practical convention that makes names easier to copy. IDs must be unique within the page and must not contain spaces, tabs, or line breaks. HTML allows a wider range of names than this convention; you do not need unusual characters for a straightforward section link. MDN’s ID guidance explains the syntax.

Give each destination one distinct name. If two headings have id="pricing", fix the duplicate before sharing the link. Plan to retain useful IDs when rewriting heading wording, so existing links can keep reaching the section.

Step 2: Add the Link That Points to It

For a link on the same page, put # and the ID in href:

<a href="#pricing">View pricing</a>

The # belongs in the link URL. It is not part of the destination’s id value. Match the ID’s spelling and capitalization: #Pricing and id="pricing" are different values.

To reach that section from another page, include the destination page’s URL before the fragment. This illustrative address assumes a page at /services/ with a pricing target:

<a href="https://example.com/services/#pricing">View service pricing</a>

Replace the example address with your real destination URL. A bare #pricing on another page looks for pricing on that other page; it does not automatically find your services page.

Step 3: Check the Jump and the Shared URL

Save your change and open the page visitors will use. Activate the link and confirm it reaches the intended section. Look for the heading and the content it introduces, rather than treating any scroll as a pass.

Then copy the complete address, including #pricing, into a new tab. Open it directly and reload. This checks the arrival someone gets from a message, bookmark, or another page. If your site uses scripts to load content or manage navigation, a link that works after a click may still need development work to support direct entry.

MDN’s fragment reference explains that the browser processes ordinary fragments after retrieving the page. A page can load normally while its intended section jump fails. A successful page response alone does not prove the destination exists.

Step 4: Check Visibility and Keyboard Use

Check the page on desktop and mobile. If a fixed header covers the destination heading, ask the person maintaining the site’s styles to allow enough space above the target. For example:

#pricing {
  scroll-margin-top: 6rem;
}

The 6rem value is illustrative. Adjust it to the actual header and test both layouts; it is not a universal setting. MDN demonstrates scroll margins for header clearance, and the CSS specification addresses fragment-target scroll margins.

Use the keyboard too:

  1. Press Tab until the link is reached. Confirm you can see which link is selected, usually through an outline or highlight, and press Enter.
  2. Check that you arrive at the intended content, then continue tabbing. Note which link is selected next: can you continue through the content you came to read, or does the route send you back through unrelated navigation?
  3. If keyboard navigation continues somewhere confusing, give the developer the browser, link, and steps you followed. Have them inspect the behavior in the browsers and assistive technologies your audience uses.

Scrolling and moving keyboard focus are separate checks.

A “Skip to main content” link has a specific accessibility purpose: bypassing repeated navigation. W3C’s skip-link technique includes checking that activation moves focus to the main content. Do not assume an ordinary heading jump proves that requirement, or that every browser focuses every heading identically.

The link URL #pricing matches the destination id pricing. The visible link words are View pricing, and the destination heading is Pricing. Check the correct section, visible heading, shared full URL, keyboard use, and desktop and mobile layouts.
Match the link’s fragment to one destination ID, then check the navigation. Visible link wording can use normal capitalization. Landscape Full Size · Portrait Full Size.

How to Add an Anchor Link in WordPress

In the Block Editor, you can create the pair without typing its HTML. These steps follow WordPress’s Page Jumps documentation, retrieved October 24, 2026. This is a documentation-based walkthrough; controls can vary with your editor and block.

  1. Select the destination Heading block.
  2. Open its block settings and expand Advanced.
  3. Enter pricing in HTML Anchor, without #. Use a unique name; not every block exposes this setting.
  4. Select the words that should link to the section, choose the link control, and enter #pricing as the link URL.
  5. Save or update the page, then run the jump, direct-URL, visibility, and keyboard checks above on the page visitors will use.

For a link from another page, use the complete destination URL plus #pricing in the link control. If the anchor field is missing, check the selected block and its documentation before adding a plugin or custom code.

WordPress documentation illustration shows Heading block settings with Advanced expanded and the HTML anchor field containing useful-hint.
WordPress’s documentation illustration shows Advanced and the HTML anchor field. Its example uses useful-hint; our walkthrough uses pricing. Retrieved October 24, 2026 from the official guide; this is a documentation image, not an authenticated test of your editor. WordPress Source Page. View Full Size.

A Worked Example: Link to a Pricing Section

Suppose you maintain a service page with an introduction, service details, pricing, and a contact section. Visitors reading the introduction may already know they want the price.

The illustrative setup is a normal public page at https://example.com/services/, with a visible Pricing heading further down. It has no existing pricing ID, and the pricing content is already present when the page loads.

First, keep pricing on that page because it answers a question about the same service. Use View pricing near the introduction. Give the Pricing heading the ID pricing. A simplified implementation is:

<p><a href="#pricing">View pricing</a></p>

<!-- The introduction and service details appear here. -->

<h2 id="pricing">Pricing</h2>
<p>Describe the service price, what it includes,
and any conditions that affect the quote.</p>

Replace the pricing paragraph with your actual offer. In WordPress, set the same two values through HTML Anchor and the link control.

The link you can share is https://example.com/services/#pricing. Replace the example domain and path with the actual page URL. The link label explains the jump; the fragment identifies its target; the page URL tells someone arriving from elsewhere which document to open.

Use this setup note to check your implementation:

Item Example Setup and Expected Check
Reader’s task Find the service’s pricing from the introduction or a shared message.
Destination Pricing heading with one id="pricing" on the page.
Same-page link View pricing, pointing to #pricing.
Shared address https://example.com/services/#pricing, replaced with the real domain and path.
Pass condition Clicking and direct entry reach the correct, visible heading; desktop/mobile and keyboard continuation are usable.
If the header covers it Adjust the target’s scroll spacing and repeat the visibility checks.
Result and owner Example awaiting your test. The site editor checks the link; the developer handles styling or navigation defects.

Record what happens when you test your link. If the destination later changes purpose, revisit the link wording and ID together.

Why Is the Anchor Link Not Working?

Check the symptom before changing the implementation. The containing page and its section target are different things to inspect.

What You See What to Inspect Correction and Completion Check
The page loads, but there is no useful jump Does the saved page contain the exact matching ID? Is # in the link and absent from the ID value? Correct the mismatch or missing target, then test the click and the full shared URL.
The link reaches the wrong section Is the ID duplicated? Does the link name a different existing ID? Give targets unique names and update the intended link. Confirm the heading reached.
The heading disappears behind the header Is fixed navigation covering the landing position? Adjust scroll spacing for the destination and recheck desktop/mobile visibility.
Clicking works, but opening the full URL directly fails Is the target available on initial load? Does custom navigation handle the fragment correctly? Give the developer the full failing URL and exact steps. Retest direct entry and reload after the fix.
The browser shows a missing-page error Does the page URL before # exist? Correct the destination page address first, then check the section target.
The mouse works, but keyboard use is confusing Can the link receive visible focus, activate with Enter, and continue sensibly? Report the browser, link, and observed focus behavior to the developer. Retest the affected keyboard route.

In a browser’s developer tools, an editor or developer can inspect the destination element’s id and the link’s href. A link checker that only checks whether the page loads may miss an invalid section target. Keep the failing full URL and observed behavior with the correction request.

Do Website Anchors Help SEO?

Their immediate value is helping people reach useful content. A clear section label and a real HTML link also follow the principle of making navigation understandable. Google’s link guidance recommends descriptive anchor text and proper link markup.

Adding anchors does not guarantee higher rankings, search-result jump links, or more conversions. A normal fragment points into an existing document; it does not create an extra page for indexing. Google’s URL-structure guidance warns against using fragments to change content that should be discoverable as distinct pages. That is a different issue from helping a reader jump to a heading already on the page.

Decisions about page paths, slugs, and changing existing addresses belong to SEO-friendly URL planning. For this task, keep the page address stable and make the section destination useful and reliable.

Before You Share the Link

Finish with one real link you have checked:

  • The target answers the question promised by the link wording.
  • Its ID is unique, and the fragment matches its spelling and case.
  • A click and the complete shared URL reach the correct section.
  • The heading stays visible on desktop and mobile.
  • Keyboard activation and continued navigation have been checked; any defect has an owner.
  • The editor knows to retest existing links after changing destination IDs or the page structure.

Use the checklist on your own page before sharing its section URL. A recipient should arrive at the answer your link promised, with enough context to understand it.

VJ
Written by
Vikas Jha

Founder of J6 Venture, an AI and human SEO engine. We help brands rank on Google and get cited in AI answer engines, grounded in real Search Console data: 1M+ monthly organic visits and 150M+ impressions delivered.

Ready to accelerate your organic growth?
Book a Strategy Session

Let's talk about how SEO, AEO, and content strategy can compound your authority.

Get started →
See case studies Book Strategy Session →