Skip to content
Tutorials Center
My learning

Topics

Lesson 18 of 36 ยท On-Page SEO

Internal Links and Anchor Text

Use internal links to help crawlers and readers: anchor text rules, link placement, hubs and spokes, finding orphan pages and link opportunities with runnable Python audits.

Internal links connect the pages of your own site. They are the paths crawlers follow to discover pages, the roads readers use to move from one answer to the next, and a way of telling search engines which pages matter most. Unlike backlinks from other sites, you fully control them, which makes them one of the most cost-effective parts of SEO.

  1. Discovery. A page that no other page links to (an orphan) may never be crawled.
  2. Context. The words of a link, its anchor text, describe the destination.
  3. Importance. Pages that receive many internal links, especially from strong pages, are treated as more central.
  4. User journeys. Good links answer the next question and lead readers toward goals.

Types of internal links: navigation (menus), footer links, breadcrumbs, links in content, related-content blocks, pagination and sitemap pages. Links within the main content are usually the most meaningful because they are surrounded by relevant text.

Anchor text

The anchor text is the clickable text of a link:

HTML
<a href="/seo/keyword-clustering-and-mapping">group keywords into clusters</a>

Good anchor text is:

  • Descriptive: it tells the reader and the engine what they will find.
  • Natural: it fits the sentence.
  • Varied: do not use the identical phrase for every link, but do not be random either.
  • Short: a few words.

Poor anchor text: "click here", "read more", "this page", a bare URL, or the same exact-match keyword pasted everywhere. "Click here" also fails accessibility, because screen reader users often scan a list of links out of context.

Weak Better
Click here for more See our keyword research guide
Read more Learn how to write a meta description
https://example.com/page The heading checklist

Links around images use the image's alt text as the anchor, so write alt text that describes where the link goes.

Try it: anchor text audit

The page below scans its own links, classifies the anchor text and reports generic ones. It works on any HTML you paste into the editor.

Anchor text auditor
  • In the body, near the sentence the link supports. Early links in the content tend to be seen by more readers.
  • Contextually, where the reader would plausibly want more detail.
  • To your most important pages often, from relevant pages.
  • Both directions where it makes sense: a guide links to its category, and the category links to the guide.
  • Not excessively. There is no magic number, but dozens of links in a paragraph look spammy and dilute each other. Each link should earn its place.

Breadcrumbs (Home > Guides > Repot a tomato plant) show the hierarchy and add a link to each parent. They help users and can be marked up with structured data. Keep the main navigation focused on key sections; a navigation of 200 links makes every link less meaningful.

Hubs and spokes

A powerful pattern for topical coverage is the hub-and-spoke (or topic cluster) model: one broad hub page covers a subject and links to detailed spoke pages, and each spoke links back to the hub and to related spokes.

flowchart TD
    Hub["Hub: Growing tomatoes (complete guide)"]
    S1["Spoke: Repotting"]
    S2["Spoke: Watering"]
    S3["Spoke: Pests"]
    S4["Spoke: Varieties"]
    Hub --> S1
    Hub --> S2
    Hub --> S3
    Hub --> S4
    S1 --> Hub
    S2 --> Hub
    S3 --> Hub
    S4 --> Hub
    S1 --- S2
    S2 --- S3

The hub shows the whole topic; spokes go deep. Links in both directions make the cluster clear to readers and crawlers.

Finding orphan pages and opportunities

Use a crawl or your own CMS data to map the links. Pages with no incoming links need attention, and pages with few incoming links but high value deserve more.

Python Orphan and low-link page finder

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Dead ends are not always wrong, but a long guide with no next step wastes a visitor's attention.

Once a new page is published, find existing pages that mention its topic without linking to it. The program below looks for a phrase in page texts and shows where a link could be added.

Python Find unlinked mentions

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Never force a link where the topic does not fit. A relevant mention is a better chance than a random one.

  • Use real <a href> links. Buttons that only run JavaScript, or links without an href, may not be followed.
  • Avoid nofollow on your own internal links (except for special cases such as login pages), since it wastes the internal signal.
  • Fix broken links, and avoid linking to URLs that redirect: link to the final URL.
  • Open links in the same tab by default; use new tabs rarely, with rel="noopener" when you do.
  • Keep important pages within about three clicks of the home page (see site architecture).

Common mistakes

  • Generic anchor text such as "click here".
  • Orphan pages left unlinked after publishing.
  • Hundreds of links in templates (footer mega-menus) that dilute the important ones.
  • Linking every mention of a phrase in one article.
  • Using JavaScript click handlers instead of real links.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which anchor text is best?

    Descriptive anchor text tells readers and engines what the destination is about.
  2. 2. What is an orphan page?

    Crawlers follow links, so pages nobody links to are easily missed.
  3. 3. In the hub-and-spoke pattern, how do the pages link?

    Links in both directions show the topic structure to readers and crawlers.
  4. 4. Why is a JavaScript-only click handler a poor replacement for a link?

    Crawlers reliably follow standard links with an href attribute.

Summary

  • Internal links help discovery, give context through anchor text and signal importance.
  • Use descriptive, natural, varied anchor text; avoid "click here".
  • Place links in relevant body content; build hubs and spokes for topics.
  • Audit for orphan and weak pages, and add links from related existing content.
  • Use real a href links and fix broken or redirecting ones.

Next: Site Architecture and URLs