Sub topic 1
How Search Engines Crawl, Index, and Show Your Page
Prerequisites
Assume you know basic HTML, URLs, query strings, HTTP status codes, and what a search results page looks like.
How Search Engines Crawl, Index, and Show Your Page
A search engine usually follows this pipeline:
- Crawl: A crawler requests a URL and discovers links to other URLs.
- Render: The engine may run JavaScript to see the page as a user would.
- Index: The engine analyzes the page and stores information about its content and meaning.
- Serve: When someone searches, the engine selects a relevant indexed page and creates a result containing a title, URL, and snippet.
Metadata supports this process, but it does not guarantee a particular ranking or search-result display.
Where Metadata Lives: the HTML Head
Metadata is information about a document. In HTML, important search metadata usually lives inside the <head> element. It is not normally visible in the page body.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Trail Running Shoes for Beginners | Example Store</title>
<meta name="description" content="Compare cushioned trail running shoes for first-time runners, with fit tips and a size guide.">
</head>
<body>
<h1>Trail Running Shoes for Beginners</h1>
</body>
</html>The Title Tag
The <title> element names the document. Search engines commonly use it as the main linked text in a result. Browsers also show it in a tab or window title.
A title should identify the page’s specific subject and, when useful, its site or brand.
Writing Titles That Are Unique and Descriptive
Give every indexable page a distinct title that matches its main content. Put the most useful information early, avoid repeated keyword lists, and keep wording natural. A product page might use Merino Hiking Socks | Example Store; a size guide should use a different title.
Search engines can rewrite a title when it is missing, duplicated, misleading, or poorly matched to the page. Treat your title as a clear recommendation, not a command.
The Meta Description Tag
The description meta tag summarizes a page:
<meta name="description" content="Compare cushioned trail running shoes for first-time runners, with fit tips and a size guide.">Descriptions usually influence how attractive a result is to searchers rather than directly determining ranking. Write one useful, accurate sentence that explains what the page offers. Search engines may replace it with page text when that text better matches the query.
Exercise
Where should a page’s title and meta description be placed, and what can happen if they do not match the page?
Show answer
Place them in the HTML head. Search engines may rewrite the title or snippet when the metadata is missing, duplicated, misleading, or poorly matched.