Sub topic 6
Search engine optimization basics
This chapter assumes you know the hub-and-spoke model from earlier chapters. You should also understand how the site's content and value proposition connect to the customer journey, and the technical foundations of speed, mobile, security and accessibility. No programming experience is needed. The short HTML snippets are explained as they appear.
What SEO is and where it fits
Search engine optimization (SEO) is the practice of making your pages easy for search engines to find, understand and rank, so that people with a relevant query reach your site without you paying per click. Organic search is one of the spokes that feeds the hub. It differs from paid search in three ways:
- You don't pay for each visit.
- Results build up slowly and last longer.
- You can't buy a position. You can only earn it.
SEO depends on two earlier foundations. The technical foundations let search engines reach and read your pages. The content and value proposition give them something worth ranking. This chapter connects the two.
How a search engine processes a page
A search engine works in stages, and a page can fail at any of them.
- Crawling. A bot follows links and sitemaps to fetch pages.
- Rendering. The engine runs the page's code to see the content a visitor would see.
- Indexing. The engine decides what the page is about and stores it in its index, which is its database of known pages. Not every crawled page gets indexed.
- Ranking. For each query, the engine picks indexed pages and orders them by estimated relevance and quality.
When a page gets no organic traffic, ask which stage failed. A page that was never crawled has a discovery problem. A page that was crawled but not indexed has a quality or duplication problem. A page that was indexed but ranks poorly has a relevance or authority problem. Each needs a different fix.
Three kinds of SEO work
| Area | Question it answers | Typical tasks |
|---|---|---|
| Technical SEO | Can the engine reach and read the page? | Speed, mobile layout, HTTPS, sitemaps, canonical URLs, fixing broken links |
| On-page SEO | Does the page clearly match what people search for? | Titles, descriptions, headings, body copy, internal links, structured data |
| Off-page SEO | Do other sites vouch for this page? | Earning links from reputable sites, mentions, reviews |
Off-page work overlaps with earned media. Links and mentions that other people give you are the earned part of the owned, paid and earned model.
Start with search intent
A keyword is a phrase people type into a search engine. Search intent is the goal behind it. Intent usually falls into one of four types:
- Informational: "how to prune roses"
- Navigational: "example shop login"
- Commercial investigation: "best garden tools for small yards"
- Transactional: "buy pruning shears"
Intent maps onto the customer journey. Informational queries tend to match awareness-stage content such as guides. Transactional queries match product and landing pages. Look at what already ranks for your target phrase. If the top results are all how-to guides and you publish a product page, you are mismatching intent, and better wording won't fix that.
Prefer a specific phrase with a clear intent over a broad one. "Spring garden tools for raised beds" is easier to rank for, and usually converts better, than "garden tools". Give each important page one main topic. Pages that try to cover several unrelated topics tend to serve none of them well.
On-page signals in the head element
The head element of an HTML page holds information for browsers and search engines that visitors don't see on the page. This example shows four core signals:
<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>- title is the clickable headline in search results. Write a unique title for every page. Put the main topic near the front, and keep it short enough that it isn't cut off, roughly 50 to 60 characters.
- meta description is the summary text that often appears under the title. It is not a direct ranking factor, but a clear description that promises something specific earns more clicks. The engine may rewrite it if it thinks another passage fits the query better.
- canonical link names the preferred URL when the same content is reachable at several addresses. This happens often with tracking parameters, sorting options and
httpversushttps. Without it, the engine has to guess which version to index, and ranking signals can be split among the copies. - viewport meta tag tells mobile browsers to fit the page to the screen width. Search engines judge pages mainly by their mobile version, so a page without a proper mobile layout is at a disadvantage.
Beyond the head, use one clear h1 heading that states the page topic, and use h2 and h3 headings to break up the body in a logical order. Write descriptive link text. "Read our pruning guide" tells both people and crawlers more than "click here". Add alt text to meaningful images so that the content is available to screen readers and to image search.
Structured data
Structured data is extra markup that labels the facts on a page in a format 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>@context names the vocabulary, and @type says what kind of thing is being described. The remaining fields are properties of that type. Other common types include Product, Article, FAQPage and LocalBusiness.
Structured data doesn't guarantee a higher ranking. It can make a page eligible for enhanced results, such as star ratings or product details. The markup must match what visitors can actually see on the page. Marking up content that isn't visible breaks search engine guidelines and can cost you those enhanced results.
Helping crawlers find and index pages
Two files and a few page-level settings control crawling and indexing:
- XML sitemap: a list of the URLs you want indexed. Submit it in the search engine's webmaster tool, such as Google Search Console, and list only canonical, indexable pages.
- robots.txt: a file at the site root that asks bots not to crawl certain paths.
- noindex robots directive: a meta tag in the page that tells engines not to index it.
These are easy to confuse, and mixing them up causes a common failure.
Internal links are also part of discovery. A page that no other page links to, called an orphan page, is hard for bots to find and signals that you don't consider it important. Link to your key pages from the home page, from navigation and from related content. This reflects the hub idea directly. The hub's structure tells the engine which pages matter.
Content quality
Search engines try to reward pages that satisfy the person searching. In practice, that means:
- Answer the query fully and early, then add depth.
- Show real experience or expertise. Name the author, cite sources, and keep facts current.
- Avoid thin pages, meaning pages with little unique content, and avoid near-duplicates created by templates.
- Update pages that have gone out of date instead of publishing a new page on the same topic. Several overlapping pages compete with each other, which is called keyword cannibalization.
Content that follows the value proposition from the previous chapters usually does well here, because it is written for a defined audience with a defined need.
Measuring SEO
Use two sources together. Search Console shows how you appear in search: impressions (times your page was shown), clicks, average position and the queries involved. Web analytics shows what visitors do after they arrive. Useful measures include:
- Organic sessions to key pages
- Click-through rate (CTR) for pages with many impressions but few clicks, which suggests a weak title or description
- Conversions from organic visits, since traffic that never converts has limited value
- Indexed page count compared with the number of pages you intended to index
Allow time. Changes can take weeks to show up in rankings, and many factors move at once, so change one thing at a time on important pages when you can.
Common mistakes
- Treating SEO as a one-time launch task instead of ongoing maintenance.
- Targeting keywords with no regard for intent.
- Duplicate titles and descriptions across many pages.
- Accidentally leaving noindex on a page after a site redesign.
- Changing URLs without 301 redirects, which breaks existing links and loses the ranking signals attached to the old address.
- Keyword stuffing, which means repeating a phrase unnaturally. It reads badly and can trigger penalties.
- Buying links. This violates search engine guidelines.
Exercise
A new product page was published a month ago and gets no organic visits. Search Console shows the page as "Crawled, currently not indexed". Which stage of the search process is failing, and name two likely causes you would check.
Show answer
The page is failing at indexing, because it was crawled but the engine chose not to store it. Likely causes include thin or near-duplicate content (check whether other pages cover the same topic), a canonical tag that points to a different URL, and weak internal links that signal the page is unimportant. Also confirm there is no accidental noindex tag.
Exercise
You want to keep a staging page out of search results. A colleague adds the path to robots.txt. Why might this not work, and what is the correct approach?
Show answer
robots.txt only asks bots not to crawl the page. The URL can still be indexed if other pages link to it, and a blocked bot can't read a noindex tag. The correct approach is to leave the page crawlable and add a noindex robots meta tag, or to protect the page behind a login so it can't be fetched at all.
Exercise
Your campaign links use URLs like /spring-sale?utmsource=newsletter&utmmedium=email. What head element stops these variants from splitting the page's ranking signals, and what should its value be?
Show answer
The canonical link element. Its href should be the clean preferred URL without tracking parameters, for example https://www.example.com/spring-sale.