Special Offer Diwali Special Bundle Offer: 3 courses for ₹8,999, save ₹9,001 (50% OFF)! Limited seats available. View Bundles →
0% Completed
Tutorials / HTML Tutorial / Chapter 5: Modern HTML5, Media & Best Practices
HTML ⏱ 10 min read

SEO Basics & Meta Tags

Search Engine Optimization (SEO) ensures your website gets discovered by Google, Bing, and millions of online searchers.

What is it?

SEO in HTML refers to structuring meta tags, heading hierarchies, URL slugs, canonical links, and Open Graph tags so search engine crawlers understand your content.

Why is it used?

High organic search rankings bring free, targeted student enrollments and customer traffic without expensive paid advertising.

Detailed Explanation

Critical HTML SEO components: • `<title>`: The most important on-page SEO factor. Keep between 50-60 characters. • `<meta name="description">`: 150-160 character preview snippet shown on Google search results. • `<meta name="robots" content="index, follow">`: Tells crawlers to index the page. • Open Graph (OG) tags (`og:title`, `og:image`): Powers rich preview cards when shared on WhatsApp, LinkedIn, and Twitter.

Syntax Structure

Syntax Blueprint
<meta name="description" content="Clear 155-character summary of page.">
<meta property="og:title" content="Page Title">
<meta property="og:image" content="https://example.com/banner.jpg">

Code Example

HTML Code
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <!-- Primary Meta Tags -->
  <title>Best Computer Courses in Nanded | IGM Computer Institute</title>
  <meta name="title" content="Best Computer Courses in Nanded | IGM Computer Institute">
  <meta name="description" content="Join IGM Computer Institute for MKCL KLiC certified courses in Python, Data Analytics, C++, and Excel. Hands-on labs & 100% placement guidance.">
  <meta name="keywords" content="computer institute nanded, klic courses, python classes, data analytics nanded">
  <meta name="robots" content="index, follow">

  <!-- Open Graph / WhatsApp / Facebook -->
  <meta property="og:type" content="website">
  <meta property="og:url" content="https://igmcomputers.com/courses">
  <meta property="og:title" content="Best Computer Courses in Nanded | IGM Computer Institute">
  <meta property="og:description" content="Learn Python, C++, and Data Analytics with industry certifications.">
  <meta property="og:image" content="https://igmcomputers.com/static/img/og-preview.jpg">
</head>

Explanation of the Code

These tags provide search bots and social platforms with rich metadata without altering visible screen appearance.

Expected Output

When shared on WhatsApp, a rich preview card with title, description, and preview image will automatically appear.

Real-World Application

Every professional business uses OG tags to look credible and drive click-through rates across social messaging apps.

Common Mistakes to Avoid

• Keyword stuffing in meta tags (Google penalizes this). • Duplicate `<title>` and `<meta description>` across different pages.

Quick Practice Challenge

Craft an optimal 55-character title tag and a 150-character meta description for a personal portfolio website.

Key Takeaways

• Keep `<title>` under 60 characters and `<meta description>` under 160 characters. • Open Graph tags ensure beautiful preview cards on WhatsApp, LinkedIn, and Twitter. • Use descriptive header hierarchies and clean URLs.