Web Development · Module 12 · Lesson 31 min read

SEO Basics

Search engine optimisation

Helping search engines find, understand and rank your pages, mostly by building pages that are good for people.

On-page essentials

  • A unique, descriptive <title> (about 50–60 characters) on every page.
  • A meta description (about 150 characters) that makes people want to click: <meta name="description" content="Learn web development step by step…">
  • One <h1> with the page's main topic, then logical h2/h3.
  • Semantic HTML (<main>, <article>, <nav>).
  • Descriptive alt text on images.
  • Clean, readable URLs: /courses/web-development, not /page?id=482.
  • Internal links with meaningful text.

Technical SEO

  • Mobile-friendly and fast (Core Web Vitals count).
  • HTTPS.
  • sitemap.xml listing your pages, and robots.txt.
  • Canonical URLs to avoid duplicate content: <link rel="canonical" href="…">.
  • Content that's visible without heavy client-side JavaScript. Frameworks with server-side rendering or static generation (Next.js, Astro) help.

Social sharing previews

Open Graph tags control how links look when shared: og:title, og:description, og:image.

Tools

Google Search Console shows how Google sees your site, errors and search queries. Lighthouse has an SEO audit.

Example

HTML
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>Learn Web Development Step by Step | ComputerNote</title>
  <meta name="description" content="Free web development course: HTML, CSS, JavaScript, React and Node.js with examples you can run on your phone." />
  <link rel="canonical" href="https://example.com/courses/web-development" />

  <!-- Social sharing preview -->
  <meta property="og:title" content="Learn Web Development Step by Step" />
  <meta property="og:description" content="HTML, CSS, JavaScript, React and Node.js — free." />
  <meta property="og:image" content="https://example.com/og/web-dev.png" />
</head>
<body>
  <main>
    <h1>Web Development Course</h1>
    <article>
      <h2>Module 1: How the Web Works</h2>
      <img src="web.png" alt="Diagram of a browser requesting a page from a server" />
    </article>
  </main>
</body>
</html>