HTML Β· Chapter 44 of 45

HTML SEO Basics

Search Engine Optimization (SEO) starts with clean, semantic HTML: a unique descriptive <title>, a meta description, proper heading hierarchy, and meaningful alt text on images.

Other important factors include fast page load times, mobile responsiveness, descriptive link text (avoiding 'click here'), and a logical URL structure β€” all of which HTML choices directly influence.

Syntax
<meta name="description" content="...">

On-page SEO basics

A unique <title> and meta description per page, one clear <h1>, and properly nested headings all help search engines understand and rank content.

Content and links

Descriptive alt text, meaningful link text, and clean semantic markup (rather than div soup) all contribute positively to how search engines interpret a page.

Example 1 (html)
<title>Best Coffee Shops in Seattle - CityGuide</title>
<meta name="description" content="Discover the top 10 coffee shops in Seattle, rated by locals.">
Output
(shown as the search result title and snippet)

A descriptive, keyword-relevant title and description improve click-through rates from search results.

Example 2 (html)
<a href="/pricing">View our pricing plans</a>
Output
View our pricing plans

Descriptive link text is more useful for SEO and accessibility than generic 'click here' text.

Key points

  • Unique title and meta description per page help SEO.
  • Proper heading hierarchy (one h1, nested h2/h3) matters for ranking.
  • Descriptive alt text and link text improve SEO and accessibility together.
  • Fast, mobile-friendly, semantic pages rank better overall.
πŸ’‘ Note: SEO is not just about search engines β€” good SEO habits usually also mean a better user experience.

πŸ“ Quick Quiz

1. Which tag most directly affects the search result headline?

2. What kind of link text is best for SEO?

3. How many <h1> tags should a well-structured page typically have?