Sub topic 1
How search engines crawl, index, and show your page
Prerequisites
This chapter assumes you know the following:
- Basic HTML structure, meaning the difference between
<head>and<body>. - What a URL is, what a query string is, and what common HTTP status codes mean (200, 301, 404).
- What a search engine results page (SERP) looks like.
The three stages
A search engine handles every page in three stages: crawling, indexing, and serving. Each stage uses different signals, so it helps to know which stage a problem belongs to.
Crawling
Crawling is the fetching of a URL by a program called a crawler (Google's is Googlebot). The crawler finds URLs through links on other pages, through sitemaps, and through URLs it already knows. It requests each URL and records the HTTP status code and the response.
Crawling answers the question "can the engine read this URL?" A robots.txt rule can block it. A 404 or a server error can stop it.
Indexing
Indexing is the processing and storing of what the crawler fetched. The engine reads the HTML, extracts the text, links, and metadata, and decides whether to keep the page in its index, which is its database of known pages.
Two things matter for this tutorial:
- The
<title>and meta description are read at this stage and stored with the page. - When several URLs show nearly identical content, the engine groups them as duplicates. It picks one URL from the group as the canonical URL, the version it keeps in the index and shows in results. The
rel=canonicaltag is one signal for that choice.
Not every crawled page is indexed. A noindex directive, low quality, or a duplicate that lost the canonical selection can all keep a page out.
Serving
Serving happens when someone searches. The engine ranks indexed pages, then builds the result for each one:
- A title link, usually taken from your
<title>element. - A snippet, the descriptive text under the title, taken from your meta description or from text on the page.
- The URL, which is the canonical one.
The engine builds the title and snippet again for each search. It can change them to fit the query. Your tags are strong hints, not commands.
Where each element acts
| Element | Read at | Influences |
|---|---|---|
| `<title>` | Indexing | The title link in results |
| Meta description | Indexing | The snippet, when the engine judges it a good match |
| `rel=canonical` | Indexing | Which duplicate URL is kept and shown |
A worked example
Suppose your shop has these three URLs, all showing the same product list:
https://www.example.com/shoes/trail-runninghttps://www.example.com/shoes/trail-running?utm_source=newsletterhttp://www.example.com/shoes/trail-running
The crawler may find all three, because newsletters link to the second and old links point to the third. Each one returns status 200. At indexing, the engine sees the same content and groups the URLs. Without a hint, it chooses one by itself, and the choice may not be the one you want. With a canonical tag pointing to the first URL, you give it a clear preference.
The same grouping affects the title and snippet. Only the chosen canonical URL appears in results, so its title and description are the ones people see.
Why this order matters for the rest of the tutorial
The next chapters cover each element in turn. Titles and descriptions work at the serving end, since they shape what searchers see. Canonicals work at the indexing end, since they decide which URL gets shown at all.
Exercise
A page returns status 200 and has a well-written title, but it never appears in search results. Name two stages where the cause could lie, and one example for each.
Show answer
Crawling and indexing both fit. At crawling, robots.txt may block the URL, so the engine never fetched the page. At indexing, the page may carry a noindex directive, or it may be a duplicate that lost the canonical selection to another URL.
Exercise
In the worked example, which of the three URLs would you set as the canonical, and why?
Show answer
The first one, https://www.example.com/shoes/trail-running. It uses HTTPS, has no tracking parameter, and is the clean version of the page.