← Cheat Sheets
HTML Head and Meta Tags
Essential tags for the document head.
# HTML Head and Meta Tags
Essential tags for the document head.
```html
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page title (about 50-60 characters)</title>
<meta name="description" content="Summary, about 150-160 characters">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://example.com/page">
<link rel="icon" href="/favicon.ico">
<!-- Social sharing -->
<meta property="og:title" content="Title">
<meta property="og:description" content="Description">
<meta property="og:image" content="https://example.com/share.jpg">
<meta property="og:url" content="https://example.com/page">
<meta name="twitter:card" content="summary_large_image">
```