Crawlable Links and Anchor Text: Google’s Rules for Beginners

Close-up of metal chain links

Links are how Google finds pages, and the words you use in a link tell Google and readers what to expect. This guide follows Google’s documentation on crawlable links and explains which links Google can follow, how to write good anchor text and how to handle external links.

Quick facts

  • Crawlable link: an `<a>` element with an `href` attribute
  • Weak anchor text: generic phrases such as “click here” or “read more”
  • Good anchor text: descriptive, reasonably concise and relevant to both pages
  • Image links: Google uses the image’s alt attribute as anchor text
  • Paid links: qualify with sponsored or nofollow
  • Last checked: 5 November 2026 against Google Search Central

Which links can Google crawl?

Google says it generally crawls a link only if it is an `<a>` element with an `href` attribute. It cannot reliably extract URLs from elements that lack an `href`. Google’s crawlable links page lists:

  • Recommended: absolute URLs, root-relative paths and `./` relative paths, with extra attributes such as class or onclick allowed alongside a valid href
  • Not recommended: `<span href>`, `routerLink` and onclick-only elements without an href
  • Not recommended: `javascript:` pseudo-URLs, though Google may still try to resolve them

Links inserted by JavaScript are crawlable if they use the same `<a href>` markup.

What is anchor text?

Anchor text is the visible text of a link. Google says empty link text is a bad practice. If the link is empty, Google can fall back to the title attribute. For an image link, Google uses the image’s alt attribute as the anchor text, so descriptive alt text matters; see our guide to image alt text in WordPress.

How to write good anchor text

Google’s advice is to make anchor text:

  • Descriptive and reasonably concise
  • Relevant to both the linking page and the destination
  • Natural, without keyword stuffing, which Google says violates its spam policies

Generic phrases like “click here” or “read more” are weak, and very long anchor text is discouraged. A simple test from Google: read the anchor text out of context. If it does not make sense on its own, make it more descriptive. Give links surrounding context, and avoid chaining several links together.

Internal links

Google says every page you want it to find should have at least one link from another page on your site. Link to related resources in context. There is no ideal number of links, but an excessive number is likely too many. Our beginner’s guide to internal linking goes into more detail.

External links

  • Linking to other sites can build trust, for example when you cite sources, and readers should get context about what to expect
  • Use nofollow only when you do not trust the source, not on every external link
  • Qualify paid links with sponsored or nofollow
  • Qualify user-inserted links, such as in forums or Q&A sections, with ugc or nofollow

Frequently asked questions

Does Google crawl links without an href?

Not reliably. Google says it generally crawls only `<a>` elements with an href attribute.

Is “click here” bad anchor text?

It is weak. Google recommends descriptive text that makes sense on its own.

Should I nofollow all external links?

No. Google says to use nofollow only when you do not trust the source.

Do image links count as anchor text?

Yes. Google uses the image’s alt attribute as anchor text.

Scroll to Top