Find a course

Module 1: How Search WorksLesson 1 of 1212 min

How Search Engines Crawl, Index and Rank

Follow a page from publication to the results page: how crawlers discover it, how it gets indexed and what search engines weigh when ranking it.

Step 1 of 12Learn

Two bakeries, one search

Two bakeries open on the same street in the same month. Both bake excellent sourdough. A year later, one gets a steady stream of new customers who searched "sourdough bakery near me" or "best bread in Portland." The other is a mystery to everyone who doesn't walk past it.

The difference isn't the bread. The first bakery's website clearly says what it sells and where, loads fast on a phone, has a complete Google Business Profile with photos and reviews, and publishes a few genuinely useful pages, like "How to store sourdough so it stays fresh." The second has a beautiful homepage that's a single image with no text, so search engines can barely tell what it is.

Search engine optimization (SEO) is the practice of improving a website so it appears for relevant searches and earns clicks from organic (unpaid) results. It's not about tricking an algorithm. Modern search engines try to show the most helpful result for each query, so SEO is mostly about making it easy for them to find, understand and trust your pages, and making those pages genuinely worth showing.

Google handles the large majority of web searches worldwide, roughly 90% by most estimates, so this course uses Google as the main example. Bing, DuckDuckGo and others work on similar principles.

Step 2 of 12Learn

Step 1 and 2: crawling and indexing

Search engines work in three stages.

Crawling is discovery. Automated programs called crawlers or bots (Google's is Googlebot) fetch web pages and follow the links on them to find more pages. They find new pages mainly through links from pages they already know and through XML sitemaps that site owners submit. A page with no links pointing to it, an "orphan page," may never be found.

Indexing is understanding and storing. After fetching a page, the search engine renders it (including running JavaScript, though that can be delayed), analyzes the text, headings, images, links and structured data, works out what the page is about and decides whether to store it in its index, a giant database of pages. Not every crawled page is indexed. Duplicates, thin pages with little useful content, and pages marked "noindex" may be left out.

A page that isn't indexed cannot rank, no matter how good it is. That's why the very first SEO check for any important page is simple: is it in the index? You can check with Google Search Console's URL Inspection tool, or roughly by searching site:yourdomain.com followed by a word from the page.

Step 3 of 12Practice · Diagram

From new page to search result

Tap each stage. A page has to clear every stage on the left before it can compete on the right.

At which stage is a page stored in the search engine's database so it can be shown later?

Tap the shape that answers the question, then press Check.

From new page to search resultProcess diagram: Discover → Crawl → Render → Index → Rank and serve.DiscoverCrawlRenderIndexRank and serve
Discover

A crawler finds the URL through a link, a sitemap or a submission in Search Console.

Crawl

The bot downloads the page's HTML and the files it needs. robots.txt can block this stage.

Render

The page is run like a browser would, including JavaScript, so the engine sees the final content.

Index

The engine analyzes the content and stores it in its huge database of pages. A noindex tag stops this stage.

Rank and serve

When someone searches, matching indexed pages are ordered by relevance, quality and usability in a fraction of a second.

Step 4 of 12Practice · Put in order

Put the stages a new blog post goes through before it can appear in search results in the right order.

Drag the items, or use the arrow buttons, to put them in order.

  1. Google renders and analyzes the page content
  2. The page is stored in Google's index
  3. The page is ranked when someone searches a relevant query
  4. Googlebot follows the link and fetches the page
  5. The post is published and linked from the blog homepage

Step 5 of 12Learn

Step 3: ranking

When someone searches, the engine looks through its index and orders matching pages in a fraction of a second. Google has said it uses many signals, grouped broadly into:

  • Meaning and intent: what is the searcher actually looking for? "Python" could mean the language or the snake; "apple pie recipe" wants a recipe, not a history of pies.
  • Relevance: does the page's content match the query and its intent? Words in titles, headings and body text matter, but so do synonyms and related concepts.
  • Quality: does the page show expertise, experience, authoritativeness and trustworthiness? Links from other reputable sites are one strong signal of this.
  • Usability: does it work well on mobile, load reasonably fast and use HTTPS, without intrusive pop-ups?
  • Context: the searcher's location, language and settings. "Pizza" in Chicago and in Rome give different results.

No one outside the search engine knows the exact weights, and they change with frequent updates. That's a reason to focus on fundamentals rather than tricks. Pages that clearly answer the searcher's need, on a site that's technically sound and trusted by others, tend to hold up through algorithm changes.

Step 6 of 12Practice · Match the pairs

Match each search engine stage to what happens in it.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. Crawling
  2. Indexing
  3. Ranking
  4. Rendering

Step 7 of 12Tap to reveal

What's on a results page

  1. Paid ads

    Marked "Sponsored." Advertisers pay per click through Google Ads. Ads are not SEO; they stop the moment you stop paying.

  2. Organic results

    The classic blue links with a title, URL and snippet. These are earned, not bought, and are the main target of SEO.

  3. AI Overviews and featured snippets

    Summaries or extracted answers shown above the organic links for many questions. They often cite and link to source pages.

  4. Local pack

    A map with three businesses for searches with local intent, like "dentist near me." Driven largely by Google Business Profiles.

  5. Other features

    People Also Ask boxes, image and video carousels, shopping results, news and knowledge panels. Each one changes how many clicks the plain organic results get.

Step 8 of 12Compare

Organic results vs. paid ads

AspectOrganic resultsPaid search ads
How you get thereEarned: the engine judges your page the best matchBought: you bid in an auction for the keyword
Cost per clickNone, but content and site work take time and moneyYou pay for every click
SpeedWeeks to months to build upTraffic can start the same day
When you stopRankings usually fade slowlyTraffic stops almost immediately
Label on the pageNo labelMarked as Sponsored

Step 9 of 12Practice · True or false

Paying for Google Ads improves a website's organic rankings.

Step 10 of 12Note

Step 11 of 12Practice · Select all that apply

Which of these can stop an excellent page from appearing in Google's results? Select all that apply.

Select all that apply.

Step 12 of 12Practice · Choose one

The second bakery's homepage is one large image containing all its text. Why is this an SEO problem?