Article
Crawlable links and anchor text: Google's rules
Short answer
Google can generally only crawl a link if it’s an <a> element with an href attribute, and that URL needs to resolve to a real web address its crawlers can request (Google Search Central). Once the link is crawlable, the words inside it should describe the page you’re pointing at, briefly and specifically, so people and Google know what’s on the other end (Google Search Central).
That’s the short version. The rest of this piece covers what Google’s link best practices page actually says, using its own examples, so you can fix your own pages without guessing.
Why links matter to Google at all
Google uses links as a signal when it works out how relevant pages are, and to find new pages to crawl (Google Search Central). So a link does two jobs: it tells Google a page exists, and its wording hints at what that page is about. The doc was last updated on 2025-12-10, per the page itself (Google Search Central).
What makes a link crawlable
Most links in formats other than an <a> element with an href won’t be parsed and extracted by Google’s crawlers (Google Search Central). Google also can’t reliably pull URLs from <a> elements missing an href, or from other tags that act as links through script events (Google Search Central).
These are the formats Google lists as ones it can parse (Google Search Central):
<a href="https://example.com">
<a href="/products/category/shoes">
<a href="./products/category/shoes">
<a href="/products/category/shoes" onclick="javascript:goTo('shoes')">
<a href="/products/category/shoes" class="pretty">And these are the ones it lists as not recommended (Google Search Central):
<a routerLink="products/category">
<span href="https://example.com">
<a onclick="goto('https://example.com')">Links inserted with JavaScript still count as crawlable, as long as the inserted markup follows the recommended format above (Google Search Central).
The URL itself matters too. It should resolve into an actual web address, like https://example.com/stuff, /products or /products.php?id=123 (Google Search Central). Values like javascript:goTo('products') and javascript:window.location.href='/products' sit in the not-recommended pile (Google Search Central).
Note
Note: Google says it may still attempt to parse and resolve the not-recommended formats (Google Search Central). Our read: “may attempt” is a shrug, not a promise. If you control the markup, use the plain version.
| Link pattern | Google’s label | What to do |
|---|---|---|
<a href="/page"> | Recommended (Google Search Central) | Keep it |
<a> with onclick but no href | Not recommended (Google Search Central) | Add a real href |
<span href="..."> | Not recommended (Google Search Central) | Swap for an <a> tag |
href="javascript:..." | Not recommended (Google Search Central) | Use a real URL path |
Anchor text: the words between the tags
Anchor text (also called link text) is the visible text of a link, and it tells people and Google something about the page you’re linking to (Google Search Central). An empty link, with nothing between the tags, is the doc’s “bad” example (Google Search Central).
There are two fallbacks. If an <a> element is empty for some reason, Google can use the title attribute as anchor text (Google Search Central). For image links, Google uses the image’s alt attribute as the anchor text, so the doc says to add descriptive alt text (Google Search Central).
Watch out
Watch out: if JavaScript inserts your anchor text, Google says to use the URL Inspection Tool to confirm it’s present in the rendered HTML (Google Search Central).
Weak vs better anchor text
Good anchor text is descriptive, reasonably concise, and relevant to both the page it sits on and the page it links to (Google Search Central). Here are the doc’s own examples, side by side.
| Problem | Weak version | Better version |
|---|---|---|
| Too generic | Click here to learn more, or learn more about our cheese on our website (Google Search Central) | For a full list of cheese available for purchase, see the list of cheese types (Google Search Central) |
| Weirdly long | The whole sentence about the Knitted Cow’s re-opening and cow-shaped ice sculptures is linked (Google Search Central) | Only “Knitted Cow invites local residents of Wisconsin” is linked (Google Search Central) |
| Chained links | “so”, “many”, “times”, “this”, “year” each linked separately (Google Search Central) | Each link gets its own descriptive phrase with context around it (Google Search Central) |
Google’s test is simple: read only the anchor text, out of context, and check whether it makes sense by itself (Google Search Central). If you can’t tell what the page is about, it needs more description (Google Search Central).
Two more rules from the doc. Don’t cram in every related keyword, because keyword stuffing is a violation of Google’s spam policies (Google Search Central). And the words before and after a link matter, so pay attention to the whole sentence (Google Search Central). Chaining links next to each other makes them harder for readers to tell apart and strips the surrounding text from each one (Google Search Central).
Internal links: point your pages at each other
Paying attention to the anchor text on internal links can help both people and Google make sense of your site and find more of your pages (Google Search Central). Google says every page you care about should have a link from at least one other page on your site (Google Search Central).
How many links per page? Google says there’s no magical ideal number, but if you think it’s too much, it probably is (Google Search Central). (Refreshingly honest for a documentation page.)
A simple way to work through your own site:
- List the pages you care about most. Our read: start with the ones that make money or answer the questions customers ask.
- For each one, find at least one other page on your site that links to it (Google Search Central). If none does, add a link.
- Think about which of your other pages would help a reader understand that page, and link to them in context (Google Search Central).
- Read each anchor on its own. If it says “read more” or “here”, rewrite it to name the destination (Google Search Central).
- Check the code: each link should be an
<a>tag with a realhref(Google Search Central).
External links and rel values
Linking out isn’t something to be scared of, and external links can help establish trustworthiness, for example when you cite your sources (Google Search Central). Google’s advice is to link out when it makes sense and tell readers what to expect on the other side (Google Search Central).
Then there are the rel values. Here’s what the doc says each one is for.
| Value | When Google says to use it |
|---|---|
nofollow | Only when you don’t trust the source, and not on every external link (Google Search Central) |
sponsored or nofollow | If you were paid in some way for the link (Google Search Central) |
ugc or nofollow | If users can insert links on your site, like a forum or Q&A section (Google Search Central) |
The doc’s nofollow example is a cheese fan responding to a story that trashed their favorite cheese, who doesn’t want to pass along any reputation with the link (Google Search Central). Our read: blanket nofollow on every outbound link goes against what the doc says, so if a theme or plugin does that by default, check it.
Key takeaway
What to do next
- Open your most important page and view its source. Confirm every link is an
<a>with a realhref(Google Search Central). - Replace any “click here” or “read more” anchors with words that describe the destination (Google Search Central).
- Add descriptive alt text to any image that works as a link (Google Search Central).
- Make sure each page you care about has at least one internal link pointing to it (Google Search Central).
- Tag paid links
sponsoredand user-added linksugc, and dropnofollowfrom sources you actually trust (Google Search Central). - If JavaScript builds your links or anchor text, check the rendered HTML with the URL Inspection Tool (Google Search Central).
Curious why Be In GEO cares about plumbing like this? There’s more on how Be In GEO works.
Get the worksheet
Want to see which sites AI answers cite for the questions your customers ask? Grab the free worksheet at beingeo.com/checklist. You’ll also get short emails with each new teardown.