Sections that a link cannot point to
Headings have no ids, repeated or unstable ids, ids with spaces, or are hidden, so links to a section land in the wrong place or at the top.
Why it matters #
A link can point to one part of a page by adding # and an id, as in /guide/#delivery. Search engines and AI assistants use links like these to send readers to the passage they quote, and people use them to share a section. That only works when each heading has an id that is unique, stable and visible.
The HTML standard says an id must be unique in the page and must not contain spaces. When an id is used twice, a link goes to the first one. Ids made by a site builder, such as random strings, may change when the page is saved, so old links land at the top. Headings hidden in closed tabs cannot be shown, and the snippet guidance from Google says deep links work best for content that is visible when the page loads.
How to fix it #
Give each section heading (H2, H3) a short, readable id made from its words, with hyphens instead of spaces, and keep it when you edit the heading. Make every id on the page unique. Show the sections people quote when the page loads, or use <details> or hidden="until-found", which browsers open for a link.
Check that links to #sections on the page match an id exactly: ids are case-sensitive. Test with the Citation Anchor Checker.
- Give each H2 and H3 a readable, unique id.
- Replace spaces with hyphens and remove random ids.
- Make sure every #link on the page has a matching id.
What it looks like, and fixed #
<h2 id="section 2">Delivery</h2>
<h2 id="returns">Returns</h2>
<h2 id="returns">Exchanges</h2>
<h3 id="a8f3k2">Refund times</h3>
<a href="#Delivery">See delivery</a>
An id with a space, a repeated id, a random id that may change, and a link whose case does not match any id.
<h2 id="delivery">Delivery</h2>
<h2 id="returns">Returns</h2>
<h2 id="exchanges">Exchanges</h2>
<h3 id="refund-times">Refund times</h3>
<a href="#delivery">See delivery</a>
Short, readable, unique ids made from the heading words, and a link that matches exactly.
Fix it with your AI assistant #
Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
My website [your website address] runs on [your platform, e.g. WordPress with the block editor]. A check says sections on [the page address] cannot be linked to reliably. First read the page HTML (or ask me to paste it) and list every H2 and H3 with its id, and every #section link on the page. Tell me in plain words which ids are missing, repeated, random, contain spaces or do not match a link exactly (ids are case-sensitive), and which sections are hidden on load. Then give me a short, unique id for each heading from its words, in lower case with hyphens, and the corrected links. Keep any good existing id that outside links may use. For hidden sections, suggest details elements or hidden="until-found". Rules: back up first and do not change heading text or the page address. Give me exact changes and where they go. Finally, tell me to re-check with the URSY.com Citation Anchor Checker at ursy.com/citation-anchor-checker/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
Fix it on your platform #
WordPress #
In the block editor, select each heading and fill in HTML anchor under Advanced with a short id such as delivery.
Webflow #
Select each heading and set its ID in the element settings panel. Keep it when you edit the heading text.
A hand-made site #
Add an id to each H2 and H3, using lower-case words joined by hyphens, and check every #link matches one exactly.
Check it is fixed #
Run the URSY.com Citation Anchor Checker (/citation-anchor-checker/) on the page. Every heading should have a unique, readable id, and every #link should match one.
Official source #
Questions #
Will changing ids break old links? #
Links to the old id will land at the top of the page. Keep ids that are already good and only replace broken or random ones.
Do ids affect my ranking? #
Not directly. They let search engines, AI tools and people link to the exact passage.
More problems in AI answers and citations
- AI tools get different words or facts than visitors High priority
- Links in llms.txt do not work for bots Medium priority
- llms.txt answers with a web page or the wrong type Medium priority
- Question headings are not answered directly Medium priority
- The page does not open with a clear answer Medium priority
- llms.txt does not follow the proposed format Low priority
- No Markdown copy that AI tools can find Low priority
- The Markdown copy is incomplete or badly formed Low priority