Skip to main content

Lesson 2 of 9

SEO & Meta Tags

Learn how HTML structure directly impacts search engine rankings. From meta tags and Open Graph to structured data (JSON-LD), proper HTML markup is the foundation of SEO.

35 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

HTML Meta Tags for SEO

The <head> section contains metadata that search engines and social media platforms use. The <title> tag is the single most important on-page SEO element - it appears in search results and browser tabs. The meta description appears as the snippet in search results. Canonical URLs prevent duplicate content issues. Open Graph tags control how your page looks when shared on Facebook, Twitter, and LinkedIn.

Diagram
Loading diagram…

Meta tags provide vital instructions to browsers, search engines, and social media

Essential SEO Meta Tags

Essential SEO Meta Tags
<!-- Complete SEO-optimized head section -->
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <!-- SEO Title (50-60 characters) -->
  <title>Learn HTML5 Free - Complete Course 2025 | Priygop</title>

  <!-- Meta Description (150-160 characters) -->
  <meta name="description" content="Master HTML5 with our free, comprehensive course. Learn semantic elements, forms, accessibility, and modern web development best practices.">

  <!-- Canonical URL (prevents duplicate content) -->
  <link rel="canonical" href="https://priygop.com/courses/html">

  <!-- Open Graph (Facebook, LinkedIn) -->
  <meta property="og:title" content="Learn HTML5 Free - Complete Course">
  <meta property="og:description" content="Master HTML5 from beginner to advanced.">
  <meta property="og:image" content="https://priygop.com/images/html-course-og.jpg">
  <meta property="og:url" content="https://priygop.com/courses/html">
  <meta property="og:type" content="website">

  <!-- Twitter Card -->
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:title" content="Learn HTML5 Free">
  <meta name="twitter:description" content="Master HTML5 from beginner to advanced.">
  <meta name="twitter:image" content="https://priygop.com/images/html-course-twitter.jpg">

  <!-- Structured Data (JSON-LD) -->
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "Course",
    "name": "Complete HTML5 Course",
    "description": "Learn HTML5 from scratch.",
    "provider": {
      "@type": "Organization",
      "name": "Priygop"
    }
  }
  </script>

  <!-- Robots directive -->
  <meta name="robots" content="index, follow">
</head>

Pro Tip

Every page on your site should have a unique <title> and unique meta description. Duplicate titles confuse Google about which page to rank. Use a formula: '[Topic] - [Category] | [Brand Name]' for consistent, keyword-rich titles across your entire site.

Quick Quiz: SEO & Meta Tags

Hands-on Practice Tools for this Course

Test what you learn using these free in-browser developer utilities (no signup required).

All 40+ Tools

Topics in This Module

0/9 done