Sub topic 6
Search engine optimization basics
Search engine optimization (SEO) is the work of making your pages easy for search engines to find, understand and rank, so that people searching for your topic reach your website. This chapter assumes you know what the hub-and-spoke model is and that you have read the earlier chapters on content and technical foundations (speed, mobile, security). You need to read HTML, but you don't need to write it.
How a search engine reaches your page
A search engine works in three steps. Each step can fail separately, so it helps to know which one you are debugging.
- Crawling is when a bot follows links and downloads your pages. Pages with no internal links pointing to them are hard to discover.
- Indexing is when the engine stores what it found. A page can be crawled but not indexed, for example if it is a near-duplicate of another page.
- Ranking is the ordering of indexed pages for a given query. Relevance, content quality, links from other sites and page experience all contribute.
On-page signals
On-page signals are the parts of a page you control directly. Most of them live in the <head> element.
<head>
<title>Spring Sale | Example Shop</title>
<meta name="description" content="Save on garden tools and plants in our spring sale.">
<link rel="canonical" href="https://www.example.com/spring-sale">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>| Element | What it does | Common error |
|---|---|---|
| `title` | Shows as the clickable headline in results | Same title on every page |
| `meta name="description"` | Often used as the snippet under the headline | Left empty, so the engine picks random text |
| `link rel="canonical"` | Names the preferred URL when several URLs show the same content | Pointing to a different page by mistake |
| `meta name="viewport"` | Lets the page scale on phones | Missing, so mobile users see a shrunken desktop page |
The description does not directly raise your ranking. It affects whether people click, which is why it still deserves a sentence written for humans.
Canonical tags matter more than they look. A URL such as /spring-sale?utm_source=newsletter shows the same content as /spring-sale. Without a canonical tag, the engine may treat them as separate pages and split the signals between them. The campaign tagging chapter returns to this.
Content that matches search intent
Search intent is the reason behind a query. Someone typing "garden tools" may want to browse, while someone typing "how to prune roses" wants instructions. Match the page type to the intent.
- Pick one main topic per page.
- Use the words your audience uses in the title, the main heading and the first paragraph.
- Answer the question fully. Thin pages that repeat a keyword rarely rank.
- Link to related pages on your site, using descriptive link text instead of "click here".
Keyword stuffing, which means repeating a phrase unnaturally, reads badly and does not help.
Structured data
Structured data is extra markup that states facts in a form machines can read. The common format is JSON-LD, using the schema.org vocabulary. This example describes the organization behind the site.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Example Shop",
"url": "https://www.example.com",
"logo": "https://www.example.com/logo.png"
}
</script>Structured data can make a result eligible for richer displays, but it does not guarantee them. The markup must match what visitors can see on the page.
Common errors checklist
- Duplicate or missing titles and descriptions.
- Pages that exist but have no internal links.
- Slow or non-mobile-friendly pages, which weakens the foundations from the previous chapter.
- Missing or wrong canonical tags.
- Structured data that describes content not on the page.
Exercise
A page loads fine and appears in your sitemap, but it never shows up in search results. Which of the three steps (crawl, index, rank) would you check first, and name one likely cause at that step.
Show answer
Check indexing first, since the page is reachable but absent. A likely cause is a noindex tag, or a canonical tag pointing to another URL so the engine treats the page as a duplicate. Crawling and ranking are worth checking afterwards.