HTML Metadata & SEO
Use metadata and head tags to describe your page for users and search engines
Page Title & Meta Description
Why they matter:
The page title (<title>) and meta description influence how your page appears in browser tabs and search results. Clear, descriptive titles and summaries improve click‑through rates and SEO.
Example:
<head>
<title>HTML Forms Tutorial - Learn Web Forms</title>
<meta name="description"
content="Step-by-step HTML forms tutorial covering inputs, labels and validation.">
</head>
Canonical URLs & Robots
Use the <link rel="canonical"> tag to indicate the preferred URL for a page, and the robots meta tag to control indexing behavior.
Technical Meta Tags
<meta charset="UTF-8">- proper character encoding.<meta name="viewport" content="width=device-width, initial-scale=1.0">- mobile responsiveness.<meta name="theme-color" content="#0d6efd">- browser UI color on mobile.<meta http-equiv="X-UA-Compatible" content="IE=edge">- legacy browser compatibility.
Example:
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#0d6efd">
Quick On-Page SEO Checklist
- Unique title and description for every page.
- One clear
h1matching search intent. - Canonical URL set for indexable pages.
- Open Graph image with valid size and absolute URL.
- Descriptive alt text for important images.
- Internal links to related pages for crawlability.
Social Sharing Meta (Open Graph & Twitter)
Open Graph and Twitter Card tags control how your page looks when shared on social networks.
Key Tags:
og:title,og:description,og:image,og:urltwitter:card,twitter:title,twitter:descriptionExample: Open Graph & Twitter Tags