Meta Tags and SEO
Meta tags live in the <head> and are invisible to users but crucial for search engines, social sharing, and browser behavior. They are your most direct way to communicate with Google about your page.
Essential Meta Tags
<head> <!-- Always first in head --> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <!-- Google result headline --> <title>Learn HTML Free | CIWeb</title> <!-- Google result snippet text --> <meta name="description" content="22 free lessons, live editor, Shiv AI tutor."/> <!-- Tell Google to index this page --> <meta name="robots" content="index, follow"/> </head>
Open Graph Tags — Social Sharing
OG tags control how your page looks when shared on WhatsApp, Facebook, and LinkedIn:
<!-- WhatsApp / Facebook / LinkedIn preview --> <meta property="og:title" content="Learn HTML Free | CIWeb"/> <meta property="og:description" content="22 free lessons and a live editor."/> <meta property="og:image" content="https://ciweb.in/preview.jpg"/> <meta property="og:url" content="https://ciweb.in/courses/learnhtml/"/>
Canonical Link
<!-- Tells Google which URL is the "real" one --> <link rel="canonical" href="https://ciweb.in/courses/learnhtml/"/>
Google does not use meta description as a ranking factor. But it appears in search results and a compelling description increases clicks. More clicks signals relevance to Google over time.
Open Graph was created by Facebook in 2010 to control how URLs look when shared. It became an industry standard adopted by every social network. The og: prefix stands for Open Graph.