SEO for any website

A cyclist has a flat tyre. Will they look for instructions, a repair shop or a class? Search engine optimization (SEO) helps the right person find the page that answers their question in unpaid search.

A mechanic and a young learner examine a bicycle wheel in a repair workshop.
A visitor searchesWhere can I learn to fix a puncture?

Inside the masterclass

6 chapters · 23 lessons

Bring one page to the workshop

Choose one public URL. Write what someone came to do and how you would know they succeeded. Use that same page for your checklist.

Blog
How long should the loaf bake?Use the oven time in the recipe.
Landing page
Is there a place on Saturday?Receive a booking confirmation.
SaaS
Can my team work offline?Choose the plan with the tested feature.
Online store
Will the box arrive on Friday?Confirm delivery before paying.
Local shop
Which door is the entrance?Reach the right door using the visit page.
Documentation
How do I install version 3?Run the first example successfully.
Developer tool
Can it convert my file?Open the converted output.

Working on a shop? SEO for online stores

Chapter 1 of 6

Put your pages on the map

A street address is useful only if someone can find it and get through the door. A website has both a map and a set of visiting rules.

Lesson 1.1

Give search engines a map

A sitemap lists the full addresses you want search engines to discover. Start with one public page you would happily send to a customer.

sitemap.xml
One published pagerepair.example/classes/puncture-repair/↓   Listed in the map
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url><loc>https://repair.example/classes/puncture-repair/</loc></url>
</urlset>
  1. DiscoverFind the address
  2. CrawlVisit the page
  3. IndexSave a copy for search
  4. ShowMatch a question
The map gives a search service a starting point. At each step it decides which pages to visit, save and show. An AI search answer may also link to a useful page.

Many site builders publish the file for you. For a hand-built site, add one url entry per preferred public address, replace the example domain and save the file at /sitemap.xml.

Try it on your page

Find the sitemap in your site builder or at the end of robots.txt. Follow one listed address. Owners can submit the sitemap in Search Console → Sitemaps.

Check your work A successful submission means Google read the map. Inspect the individual URL to learn whether Google indexed that page.

Masteryly’s sitemap ·Build and submit a sitemap

Lesson 1.2

Read the sign at the entrance

A crawler is a program that visits web pages. Cooperating crawlers read a public file called robots.txt at the root of the site before fetching a path.

One rule, two paths
/robots.txt
User-agent: *
Disallow: /drafts/

Sitemap: https://repair.example/sitemap.xml
✓
May fetch/classes/puncture-repair/
−
Skip this path/drafts/test/
The example asks crawlers to skip paths starting with /drafts/. An address that is blocked from crawling can still appear in results.

Save the plain text file as /robots.txt on this host. Googlebot fetches for Google Search, including its AI search features. OAI-SearchBot serves ChatGPT Search. GPTBot has a separate model-training purpose.

Try it on your page

Read the rules for your crawler. User-agent names the crawler, and * covers crawlers without a more specific group. Find Disallow and compare its path with yours.

Check your work A lone / after Disallow covers the whole site for that group. Use a login for private content. To remove a public page with noindex, let the crawler read that instruction.

Masteryly’s robots.txt · OpenAI’s crawlers ·Google’s guide to robots.txt

What to keepA public URL a crawler may visit.
Next chapter →
Chapter 2 of 6

Work out what the visitor wants

A parent has a flat bicycle tyre. “Fix a puncture” might mean instructions, a repair shop or a class. Each deserves a different page.

Lesson 2.1

Read a search results page

A results page can mix paid placements, unpaid links, maps, videos and answers. What you see depends on the question and location. An ad buys placement in advertising slots.

Illustrative search results
learn to fix a bike puncture
Example organic linkFix your first puncture | Mill Lane Workshop

Bring your bike to the Saturday class. Tools and patches provided.

For unpaid results, search systems weigh signals such as how closely a page answers the question and the quality of its information. A payment buys an ad placement. Organic positions can change with the search.

Try it on your page

Search one phrase in the market you serve. Mark one unpaid result and any ads, maps or answer features you actually see.

Check your work Explain what the person could do from each result. Record the date and location because results can change.

Google · How Search works

Lesson 2.2

Match the page to the job

Search intent is the job behind the words. Read the verb and the details around it before you decide what to publish.

One topic, three destinations
“Why is my tyre flat?”
A diagnostic guide
“Repair shop near me”
Hours, entrance and directions
“Saturday repair class”
Date, price and booking
The same bicycle appears in all three searches. What the visitor needs to do next changes.

Try it on your page

Write down a question from a customer or reader. Finish “They came here to …” with a verb.

Check your work Someone unfamiliar with the site can point to the page where that task ends.

Google · People-first content

Lesson 2.3

Test the idea before buying a domain

Search language comes from people first. Keyword Planner can estimate how often related phrases are searched in a chosen market.

Keyword Planner · example research note
People asked
“Can a beginner come alone?”
Settings
English · the town the class serves
Compare
“beginner bike class” and “bike repair service”
Search volume is an estimate. Planner’s competition column measures advertisers. It cannot tell you how hard an organic result will be.

Try it on your page

In Google Ads, open Keyword Planner → Discover new keywords. Enter two phrases and save the location and language. Inspect their actual results.

Check your work Choose the phrase whose results match your offer. If you cannot use Planner, save three real questions and test the offer with one reader.

Google Ads · Keyword Planner metrics

What to keepOne search question and one useful destination.
Next chapter →
Chapter 3 of 6

Build an answer people can follow

Think of a good guide beside a workbench. You can see what it does, find the right step and tell what to try next.

Lesson 3.1

Draw the paths between pages

A hub, sometimes called a pillar page, gives an overview of a subject. It links to pages that answer smaller questions. A reader on a detail page should be able to get back.

A repair guide that works like a shelf
OverviewBicycle repair guides
  • First guideFind a slow leak
  • Second guidePatch the tube
  • Third guideChoose a spare tube
A real link connects each branch. In a docs site, “Getting started” might lead to installation, authentication and the first request.

Try it on your page

Sketch one overview and two useful detail pages. Open the site and follow every path in both directions.

Check your work Each page has a distinct purpose. A person can reach it through ordinary links.

Google · Crawlable links

Lesson 3.2

Let the headings tell the story

HTML headings tell readers which ideas belong together. Use the main heading for the page’s subject, section headings for its parts and smaller headings for steps inside a part.

A recipe you can scan
H1Bake a small loaf
H2Ingredients
H2Baking steps
H3Check the centre
A cook can find the oven temperature with flour on their hands. A screen-reader user can jump to Baking steps without hearing every ingredient.

Try it on your page

Read just the headings of one page aloud. Put the answer to the visitor’s first question near the top.

Check your work Each heading helps the reader predict what comes next. Use CSS to change its look.

Google’s SEO starter guide

Lesson 3.3

Make the search preview an honest invitation

The HTML title names the page. A meta description suggests a summary. Google may pick a different title or a passage that fits a particular search.

Illustrative preview
Example search · Saturday bike class Leeds
repair.example/classes/
Saturday puncture repair class in Leeds

Bring your own bike. See dates, cost and the workshop entrance.

Open Graph tags describe the title, type, URL and image for a shared link. A message preview and a Google search result can look different.
Example HTML
<title>Saturday puncture repair class in Leeds</title>
<meta name="description" content="Bring your bike. See dates, cost and the workshop entrance.">
<meta property="og:title" content="Saturday puncture repair class">
<meta property="og:type" content="website">
<meta property="og:url" content="https://repair.example/classes/puncture-repair/">
<meta property="og:image" content="https://repair.example/images/workshop.jpg">

Try it on your page

Write a specific title and a one-sentence description. Open the page and share its link in a draft message.

Check your work The page and share card deliver the event, place and details promised.

Google · Title links

Lesson 3.5

Give every useful image a job

A photo can settle a question in a second. Alt text carries its useful meaning to someone who cannot see it. Pure decoration can have empty alt text.

Text equivalent for a product photograph
An oval USB-C plug points to the matching socket.
Vague alt textProduct image
Useful alt textUSB-C plug beside its oval socket
Keep essential instructions in real text too. Reserve space using image dimensions and serve a file suited to the screen.
Example HTML
<img src="/usb-c.webp" alt="USB-C plug beside its oval socket" width="600" height="400">

Try it on your page

Cover a product photo or diagram. Write the one detail the reader has lost. Check that detail at phone size.

Check your work A person using just the text can still pick the right plug or take the next step.

W3C · Accessible images

Lesson 3.6

Give a stranger a reason to trust you

Experience, expertise, authoritativeness and trustworthiness are four questions about the evidence behind a page. Google calls them E-E-A-T. Trust matters most.

Evidence behind one claim
A dated test record identifies who did the work, its conditions and what a reader could check.
Experience · did you do it?
The maintainer ran the example on Windows 11.
Expertise · can you explain it?
The guide names the tested version and its limit.
Authority · who relies on you?
An independent project documents using the tool.
Trust · can I check it?
Publish the test file, date and correction contact.
These are ways to judge helpful content. There is no public E-E-A-T score. Health, safety and financial decisions call for especially strong evidence.

Try it on your page

Pick one claim. Add who made it, how they know and a way to check the evidence.

Check your work A new reader can trace the claim back to a person or record and explain its limits.

Google · People-first content

What to keepA readable page with a clear route in and out.
Next chapter →
Chapter 4 of 6

Make the page work on the device in hand

A guide can read well on your laptop and still fail someone standing outside with a phone. Try the visit their way.

Lesson 4.1

Keep the answer within reach on every screen

Responsive design rearranges the same content to fit the space. A phone visitor still needs the facts, links and main action available on a larger screen.

One page on three screens
One answer and one action rearrange themselves on a phone, tablet and laptop.

Resize the same page

Workshop / Visit
Visit the workshopEntrance on Mill LaneDirections →

Follow “Directions” as the page changes shape. The entrance and the action stay together.

Google generally uses the mobile version to understand the page. Keep the important text, images and links available there.

Try it on your page

Try one task on a phone, a tablet or resized window, and a laptop. Rotate the screen, enlarge the text and use the keyboard.

Check your work Ordinary text fits a narrow 320 CSS pixel layout. Focus stays visible and the visitor can finish the same task at each size.

Google · Mobile-first indexing

Lesson 4.2

Aim for a page load under 3 seconds

Target for a page load: under three seconds. A visitor waits less to read. A quick server reply uses less time per crawler request.
Less waiting helps a reader get to the answer sooner. A quick server reply can also let a search crawler fetch more pages when it needs them. Three seconds is a practical target for your page. Search engines set their own ranking criteria.

Test your page in Google PageSpeed Insights

Lesson 4.3

Check what arrives before the scripts

HTML carries headings, words and links. CSS arranges them. JavaScript can add actions such as copying a command. Sending the useful HTML first lets reading begin sooner.

One installation command
  1. HTML arrives

    The command is readable.

  2. CSS applies

    The code wraps within the page.

  3. JavaScript starts

    Copy puts it on the clipboard.

Plain HTML and CSS work well for a simple page. This site uses SvelteKit, TypeScript and plain CSS for interactive lessons. Measure what the browser receives.

Try it on your page

View Page Source and find a unique sentence. Open the published page while signed out and follow a real link.

Check your work The first response contains the important answer. Test interactive controls after scripts load.

SvelteKit · Rendering and page options

What to keepA page tested on a small screen and a keyboard.
Next chapter →
Chapter 5 of 6

Check the page against the evidence

A page can open in a browser and still be missing from search. Follow one address from discovery to a finished visit.

Lesson 5.1

Find out whether Google saved the page

Indexing means a search engine has stored a page for possible use in results. Search Console’s URL Inspection shows what Google last recorded for a specific address.

Three checks for one public page
A publicly readable page carries a noindex instruction that the crawler can read.
✓
Server response200 · the real page opens
✓
Index instructionNo noindex on a page meant for search
✓
Preferred addressGoogle selected the intended canonical URL
A canonical identifies the preferred copy among similar URLs. Google chooses the version it uses. Its live test and indexed report answer different questions.
Example HTML
<link rel="canonical" href="https://repair.example/classes/puncture-repair/">

Check the sitemap · Read the crawl rules

Try it on your page

Inspect the exact URL. Read its indexed status, then run Test live URL. If blocked, check the crawl rule before changing the page.

Check your work Record the reported reason or “owner access needed.” Eligibility alone cannot guarantee inclusion.

Use URL Inspection

Lesson 5.2

Give a machine the same facts a person sees

Structured data labels facts in a form software can read. Choose a supported type that describes what is on the page.

One workshop event
Visible listing
Puncture repair class · Saturday 9 January 2027 · 10:00 GMT · 12 Mill Lane, Leeds LS1 1AA, UK
Event data
startDate includes the same date, time and zone
Verification
Test the published URL and compare both records
A human can read the listing. A program can read the same facts in the labeled record below. Google decides whether to show an eligible event as a rich result.
Event record inside a script of type application/ld+json
{
  "@context": "https://schema.org",
  "@type": "Event",
  "name": "Puncture repair class",
  "startDate": "2027-01-09T10:00:00+00:00",
  "location": {
    "@type": "Place",
    "name": "Mill Lane Workshop",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "12 Mill Lane",
      "addressLocality": "Leeds",
      "postalCode": "LS1 1AA",
      "addressCountry": "GB"
    }
  }
}

Test a published page in Google’s Rich Results Test

Try it on your page

Check the requirements for your page type in Google’s feature gallery. Compare one real date, price or address with the markup.

Check your work The public page and its data agree. A basic guide may have no relevant rich-result feature.

Google’s structured data gallery

Lesson 5.5

Count appearances, clicks and finished tasks

Search Console records impressions when a result is shown under its reporting rules. A click opens a result. Click-through rate (CTR) is clicks divided by impressions, times 100.

Example · one page in one period
Impressions200
Clicks10
CTR5%
10 clicks ÷ 200 impressions × 100 = 5%
A completed booking is a separate outcome. Analytics, Search Console and the booking system can legitimately count different things.

Try it on your page

Filter Search Console by page and query. Compare equal periods for the same country and device. Confirm one real task in the system that recorded it.

Check your work You can explain how often the page appeared, how often it was chosen and whether a visit did something useful.

Google · Search performance report

Lesson 5.6

Fix the first broken step

Pick the first place a visitor gets stuck. Changing one thing gives you a clearer test than changing the title, design and offer together.

One test on a docs page
BeforeThe first command uses a retired option.
AfterA clean install succeeds with the current command.
If the page has impressions but few clicks, inspect the actual result and its promise. If people click but cannot finish, try the task yourself.

Try it on your page

Record the URL, date and evidence. Change one thing. Ask another person to try the same task under similar conditions.

Check your work Keep the change when it helps. Record uncertainty such as seasonality or a changed search result.

Google · Diagnose traffic drops

What to keepAn observation, a change and a repeatable test.
Next chapter →
Chapter 6 of 6

Give the useful thing a name

Once you know who the page helps, see whether people understand the promise and remember how to find it again.

Lesson 6.1

Say who the offer is for

A brand promise sets an expectation. Positioning tells someone when to choose this offer over another. The page should carry the evidence for that choice.

A walking app’s home page
Too broadA better way to explore
Specific promiseOffline walking maps for paths without a signal
A visitor can test the second promise by opening a downloaded map in airplane mode.

Try it on your page

Cover the logo. Ask a new reader who the page helps, what it offers and what proves it.

Check your work Their answer matches a promise you can actually keep.

Google · People-first content

Lesson 6.2

Choose an address people remember

The domain names the site. The path after it points to a page. A familiar ending such as .com, or a country ending such as .uk, can set expectations.

Say it, type it, find it
milllane.example
Path
/classes/puncture-repair/
Decision
Which name can a listener spell after hearing it once?
.example is reserved for teaching. Before buying a real address, check audience fit, existing names, availability, ownership and renewal cost. An exact keyword gives no ranking guarantee.

Try it on your page

Say two candidate names to people in your audience. Ask them to type each, including the ending.

Check your work Choose using spelling, fit and cost. Popularity alone cannot tell you which ending your customers trust.

Google · Exact-match domain system

Lesson 6.3

Move an address without losing the route

A permanent redirect tells a browser that an old page has moved. Pair each old URL with the closest equivalent new one before changing the site.

A small migration rehearsal
Each old address leads to the matching new destination.
/classes/tyres/
301 → /classes/puncture-repair/
/visit-us/
301 → /visit/
/cancelled-event/
404 or 410 if there is no replacement
Update internal links, canonicals and the sitemap. Avoid sending unrelated old pages to the home page.

Try it on your page

Save the old URL list and a traffic baseline. Test the response and final destination before launch, then inspect the new pages afterward.

Check your work A saved old link reaches the matching new answer in one hop. Monitor errors and search traffic after the move.

Google · Site moves with URL changes

What to keepA brand promise with proof and a tested web address.
Apply your audit →

Which tool answers my question?

What do people search for?
Keyword PlannerIn your Google Ads account, compare phrases for one area. Save the estimates and the settings.
Has Google saved this page?
Search ConsoleWith access to the site, inspect its exact address. Read the indexing reason before choosing a fix.
Can Google read my labeled facts?
Rich Results TestPaste a public URL. Open the detected item and compare its fields with the page a visitor sees.

Your one-page SEO checklist

Pick one public page. Write the job a visitor came to do. Tick a box when you have checked it. Record anything you could not verify.

Map the site
Revisit lesson
Revisit lesson
Choose a job
Revisit lesson
Revisit lesson
Read the page
Revisit lesson
Revisit lesson
Revisit lesson
Try it as a visitor
Revisit lesson
Revisit lesson
Check the result
Revisit lesson
Revisit lesson
Revisit lesson