Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

SEO Fundamentals – Meta Tags and Title | HTML Course lesson | BraveProgrammer
  1. Courses
  2. /
  3. HTML Course

Lesson 22 of 55

·HTML

SEO Fundamentals – Meta Tags and Title

8 min

Course progress40%

What you'll learn

Keep these ideas in mind as you work through the lesson.

5 points
  • Importance of `<title>` and meta description for search‑engine listings
  • Canonical URLs to avoid duplicate‑content issues
  • Keyword usage – modern SEO prefers natural language over keyword stuffing
  • Character limits for titles (≈60) and descriptions (≈155)
  • How structured data can enrich search results

Search‑Engine Optimization Basics

<head>
  <title>My Portfolio – Front‑End Developer</title>
  <meta name='description' content='Showcase of projects, skills, and contact info for Jane Doe, a front‑end developer.' />
  <meta name='keywords' content='portfolio, front‑end, developer, HTML, CSS, JavaScript' />
  <link rel='canonical' href='https://example.com/' />
</head>

Why they matter

  • <title> – Appears in search‑engine results and browser tabs; keep under 60 characters to avoid truncation.
  • meta description – Concise (≈155 characters) summary shown below the title in SERPs; influences click‑through rate.
  • canonical – Prevents duplicate‑content penalties when the same page is reachable via multiple URLs.
  • keywords – Historically used, but modern engines prioritize natural language; still useful for internal search.

SEO best practices

  • Write human‑readable, hyphen‑separated URLs (/projects/web-app).
  • Ensure each page has a unique title and description.
  • Use structured data (see Lesson 46) for rich snippets.
  • Keep the primary keyword near the start of the title and description.

Quick checklist for SEO meta tags

  1. Title present and under 60 characters? ✅
  2. Meta description under 155 characters? ✅
  3. Canonical URL defined? ✅
  4. URL slugs human‑readable and keyword‑rich? ✅
  5. Structured data added where relevant? ✅

Tip: Run a Lighthouse audit → SEO tab to verify that all meta tags are detected.

Make it stickPractice what you've learned1 quiz · 2 practical tests · Optional activities from HTML CourseBrowse activities
Previous lessonStyling Forms – Layout with Grid & FlexboxContinue to lesson 23Basic Document StructureBack to HTML Course curriculum