Meta Tags for SEO and Social
Demonstrates essential meta tags for SEO, Open Graph, Twitter Cards, and mobile optimization including viewport and charset declarations.
Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Title | Site Name</title>
<meta name="description" content="A concise description for search results.">
<meta name="keywords" content="html, meta, seo, tutorial">
<meta name="author" content="Author Name">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://example.com/page">
<meta property="og:type" content="article">
<meta property="og:title" content="Page Title">
<meta property="og:description" content="Description for social sharing.">
<meta property="og:image" content="https://example.com/image.jpg">
<meta property="og:url" content="https://example.com/page">
<meta property="og:site_name" content="Site Name">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Page Title">
<meta name="twitter:description" content="Description for Twitter.">
<meta name="twitter:image" content="https://example.com/image.jpg">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="theme-color" content="#ffffff">
<link rel="icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/manifest.json">
</head>
<body>
<h1>Page Content</h1>
</body>
</html>Meta tags provide metadata about the page: charset for encoding, viewport for responsive design, description for search snippets, robots for crawler directives. Open Graph (og:) tags control social sharing previews. Twitter Card tags optimize Twitter sharing. theme-color customizes mobile browser UI. canonical prevents duplicate content issues.
Interactive Tools for This Topic
Dotenv File ParserParse .env file content into a JSON object, handling comments, export prefixes, single quotes, and double-quoted escape sequences.INI File ParserParse INI configuration files into nested JSON with section objects, global keys, and both semicolon and hash comment support.JSON to TOML ConverterTurn a JSON object into TOML, emitting nested objects as tables and arrays of objects as array-of-tables blocks.JSON to YAML ConverterConvert JSON to readable YAML with nested block mappings, sequences, and quoting only where it is required.
Report a problem with this exampleOpens a pre-filled issue on GitHub.