SEO
Internal Links and Anchor Text: What Google Says
Key takeaways
- Use real <a href> links; Google generally does not extract links in other formats.
- Link every important page from at least one other page on your site.
- Write anchor text that still makes sense when read alone; avoid 'click here'.
- Image links need descriptive alt text, which Google uses as anchor text.
- Use sponsored for paid links, ugc for user content, and nofollow when you do not want to vouch for a page.
How does Google find and follow links?
Google can only follow a link if it is written the way browsers expect: an a element with an href attribute. According to Google's crawlable links documentation, its crawlers generally do not extract links in other formats. Links inserted by JavaScript are fine as long as they use that same markup. Google says patterns such as a span with an href, or an anchor that only has an onclick handler and no href, are not recommended, although it may still try to parse them.
This matters because discovery runs on links. Google's SEO Starter Guide says that the vast majority of the new pages Google finds each day are discovered through links, and describes sitemaps as optional. In practice, a page that nothing links to is hard to find, no matter how good it is.
What makes good anchor text?
Anchor text is the visible, clickable words of a link. Google's documentation says good anchor text is descriptive, reasonably concise, and relevant to both the page it sits on and the page it points to. Generic phrases such as "click here" or "read more" are called out as poor choices.
Google offers a simple test: read the anchor text on its own. If it does not make sense out of context, make it more specific. The same documentation warns against keyword stuffing and against clustering many links right next to each other, since the surrounding words give each link its context.
What about image links and empty links?
Google says that for an image used as a link, it treats the image's alt text as the anchor text, so linked images need descriptive alt text. If a link has no text at all, Google can fall back on the title attribute, but empty links are described as a problem to avoid. If JavaScript inserts your anchor text, Google recommends checking the rendered HTML with the URL Inspection Tool.
How should you approach internal links?
Google's crawlable links page gives two plain rules: every page you care about should be linked from at least one other page on your site, and related resources should be linked in context with descriptive anchor text. It also says there is no ideal number of links, but that a page with too many links likely has too many.
Note what Google does not say. The SEO Starter Guide has no dedicated internal-linking section and offers no formula for how many internal links to add or where. Treat any specific link counts, ratios or "link juice" formulas from other sources as opinion, not Google guidance. The Starter Guide does say PageRank uses links but is only one of many ranking signals.
When should you use nofollow, sponsored or ugc?
Google's page on qualifying outbound links describes three values for the rel attribute:
- sponsored is for advertisements and other paid placements. Google prefers it over nofollow for paid links, though nofollow is still acceptable.
- ugc is for user-generated content such as comments and forum posts. Google notes you can remove it for members who have consistently contributed high-quality content.
- nofollow is for cases where the other two do not apply and you do not want Google to associate your site with the linked page or crawl it from your site.
You can combine values in a list. Google says links marked this way will "generally not be followed," and that the linked pages may still be crawled through sitemaps or links from other sites. For links inside your own site, the same page recommends a robots.txt disallow rule rather than nofollow, and points to noindex for keeping pages out of the index.
The Starter Guide adds that linking out to trusted sources can add context and show your content is backed by other material, and that you should link only to resources you trust. It also says content management systems should automatically annotate links in user comments and forum posts.
A short link checklist
- Confirm navigation and in-content links are real
a hrefelements in the rendered page. - Find pages with no internal links pointing to them and link them from a relevant page.
- Rewrite vague anchors so each one describes its destination.
- Add alt text to any image that is a link.
- Mark paid and user-submitted links with sponsored or ugc.
These steps follow Google's published documentation. None of them guarantees rankings; Google does not say that link changes alone will improve a page's position.
Frequently asked questions
Does Google follow links that use JavaScript?
Yes, if the JavaScript produces a standard a element with an href attribute. Google's documentation says links without href, such as onclick-only anchors, are not recommended.
How many internal links should a page have?
Google gives no ideal number. It only says that a page with too many links likely has too many.
Should every external link be nofollow?
No. Google says to use nofollow when you do not trust a source or do not want to be associated with it, not on every external link. Use sponsored for paid links and ugc for user-generated content.
Is 'click here' bad anchor text?
Google lists generic phrases like 'click here' and 'read more' as poor choices because they do not describe the destination page.
Sources
- Link best practices for Google (crawlable links and anchor text) — Google Search Central
- Qualify your outbound links to Google — Google Search Central
- SEO Starter Guide — Google Search Central
Keep reading
See how AIrecommend.ai helps businesses get found and recommended by AI assistants.