HTML Meta Tags: The Complete SEO Guide (2026)

Saar Twito9 min read
Saar Twito
Saar TwitoFounder & SEO Engineer

Hi, I'm Saar - a software engineer, SEO specialist, and lecturer who loves building tools and teaching tech.

View author profile →

What Are Meta Tags?

Meta tags are HTML elements that live inside the <head> of a page. They are not visible to readers, but they tell search engines, AI crawlers, and social platforms what the page is about and how to display it. The tags that still meaningfully affect SEO in 2026 are title, meta description, canonical, robots, viewport, charset, Open Graph, and Twitter Cards. The keywords tag has been ignored by Google since 2009.

Key Facts (TL;DR)

  • Title tag: The single most important on-page SEO element. Confirmed Google ranking factor.
  • Meta description: Not a ranking factor, but Google uses it (or rewrites it) for ~37% of desktop snippets (Portent, 2020).
  • Canonical: Critical for duplicate content control across www/non-www, http/https, and parameter URLs.
  • Open Graph: Required for clean previews on Facebook, LinkedIn, Slack, iMessage, Discord. Image size: 1200×630 px.
  • Twitter Cards: Twitter/X falls back to Open Graph when these are missing — keep both for full control.
  • Ignored by Google: keywords, author (for ranking), revisit-after, distribution, rating.

Quick Reference: Every Meta Tag and Whether It Still Matters

Skim this table before reading the deeper sections. It tells you which tags to add, which to leave alone, and which to remove.

TagSEO weightStatus
<title>HighRequired, ranking factor
<meta name="description">MediumRequired for CTR; rewritten ~62% of the time
<link rel="canonical">HighRequired when duplicates exist
<meta name="robots">HighUse only when needed (noindex, nofollow)
<meta name="viewport">IndirectRequired for mobile usability
<meta charset="UTF-8">TechnicalRequired, must come first in <head>
<meta property="og:*">Off-siteRequired for social share previews
<meta name="twitter:*">Off-siteOptional (OG is fallback), recommended
<meta name="keywords">NoneIgnored by Google since 2009
<meta name="author">NoneNo SEO impact; useful for attribution
<meta name="theme-color">None for SEOBrowser UI only
<meta http-equiv="refresh">NegativeAvoid — accessibility & SEO problem
<meta name="revisit-after">NoneIgnored by all major engines
<meta name="rating">NoneIgnored; use safe-search APIs instead

The Tags That Actually Move SEO

Title Tag

The <title> is the most important on-page SEO element and a confirmed Google ranking signal. Keep it under 60 characters (~600 px), put the primary keyword near the start, and end with the brand.

<!-- Good: keyword first, brand last, under 60 chars -->
<title>Web Design Services in Chicago | YourBrand</title>

<!-- Bad: brand-only, no query relevance -->
<title>Home</title>

<!-- Bad: stuffed and truncated -->
<title>Web Design Chicago Web Designer Chicago Best Web Design Company</title>

Meta Description

150–160 characters. Not a ranking factor, but a major CTR lever. A 2020 Portent study of 30,000 keywords found Google rewrites 62.78% of meta descriptions on desktop and 71.43% on mobile— usually because they don't match the searcher's query closely enough.

For the full breakdown, see our deep dive: How to Write Meta Descriptions That Drive Clicks.

<meta name="description" content="Custom, responsive web design starting at $2,999. Mobile-first, SEO-optimized sites — free consultation, 15+ years experience.">

Canonical Tag

Tells search engines which URL is the "real" version when the same content is reachable from multiple URLs (http vs https, www vs non-www, trailing slashes, query parameters, pagination). Always use absolute URLs.

<!-- Correct -->
<link rel="canonical" href="https://www.example.com/products/widget">

<!-- Wrong: relative URL -->
<link rel="canonical" href="/products/widget">

<!-- Wrong: protocol mismatch with the page being served -->
<link rel="canonical" href="http://www.example.com/products/widget">

Robots Meta Tag

Controls indexing on a per-page basis. The default (when the tag is absent) is index, follow, so omit the tag unless you need to change behavior. Common uses: blocking thank-you pages, internal search results, staging environments, and thin tag pages from the index.

<!-- Don't index this page, but follow its links -->
<meta name="robots" content="noindex, follow">

<!-- Don't index, don't follow links, don't snippet -->
<meta name="robots" content="noindex, nofollow, nosnippet">

<!-- Bot-specific (Googlebot only) -->
<meta name="googlebot" content="noindex">

Viewport Meta Tag

Required for mobile usability. Without it, mobile browsers render at a 980 px desktop width and zoom out, hurting both UX and Core Web Vitals.

<!-- Standard, accessible -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">

Accessibility warning: Do not add maximum-scale=1.0, user-scalable=no. It blocks pinch-to-zoom and fails WCAG 2.1 SC 1.4.4 (Resize Text). Many older tutorials still recommend it — they're wrong.

Charset

Always UTF-8, and always within the first 1024 bytes of the document — meaning before any other meta tag.

<head>
  <meta charset="UTF-8">          <!-- must come first -->
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>...</title>
</head>

Social Sharing: Open Graph and Twitter Cards

Open Graph (originally a Facebook spec) is now read by virtually every platform that shows link previews: Facebook, LinkedIn, Slack, iMessage, Discord, WhatsApp, Telegram, and even AI tools that ingest URLs. Twitter/X reads its own twitter:*tags first and falls back to Open Graph if they're missing.

Open Graph (required for clean social previews)

<meta property="og:title" content="10 Web Design Trends That Will Dominate 2026">
<meta property="og:description" content="From AI-driven layouts to motion-first interfaces — the trends shaping the web in 2026.">
<meta property="og:type" content="article">
<meta property="og:url" content="https://www.example.com/blog/web-design-trends-2026">
<meta property="og:image" content="https://www.example.com/images/trends-2026.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Collage showing 2026 web design trends">
<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="YourBrand">

<!-- Article-specific (when og:type is "article") -->
<meta property="article:published_time" content="2026-04-28T08:00:00+00:00">
<meta property="article:modified_time" content="2026-04-28T10:30:00+00:00">
<meta property="article:author" content="Jane Smith">

Twitter Cards

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="10 Web Design Trends That Will Dominate 2026">
<meta name="twitter:description" content="From AI-driven layouts to motion-first interfaces.">
<meta name="twitter:image" content="https://www.example.com/images/trends-2026-twitter.jpg">
<meta name="twitter:site" content="@YourBrand">
<meta name="twitter:creator" content="@AuthorHandle">

Image specs that work everywhere

  • Aspect ratio: 1.91:1 (matches Facebook, LinkedIn, and Twitter summary_large_image).
  • Size: 1200×630 px is the sweet spot. LinkedIn requires at least 1200×627 px.
  • File size: Under 5 MB (Facebook's upper limit; aim for <1 MB for fast share rendering).
  • Format: JPG or PNG. WebP is supported but inconsistently rendered on some Slack clients.

Test before you publish

Tags You Should Stop Using (or Never Start)

  • <meta name="keywords">— Google publicly stopped using it in 2009. Bing has stated it's a spam signal when stuffed. Safe to delete.
  • <meta name="revisit-after"> — Never used by major engines. Crawl frequency is determined by sitemaps and historical update patterns.
  • <meta http-equiv="refresh"> — Use server-side 301/302 redirects instead. Meta refresh is bad for accessibility (no warning to screen readers) and Google treats long-delay refreshes as soft 404s.
  • <meta name="rating"> — Adult-content rating tags are ignored. Use SafeSearch APIs and proper site classification instead.
  • <meta name="copyright"> — No SEO value; put copyright info in the footer where users can see it.

A Production-Ready Template

Copy this into the <head>of any new page and customize the values. It includes everything that matters and nothing that doesn't.

<!DOCTYPE html>
<html lang="en">
<head>
  <!-- Technical -->
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <!-- SEO -->
  <title>Web Design Services in Chicago | YourBrand</title>
  <meta name="description" content="Custom, mobile-first web design in Chicago. SEO-optimized sites starting at $2,999 — free consultation, 15+ years experience.">
  <link rel="canonical" href="https://www.yourbrand.com/services/web-design">

  <!-- Open Graph -->
  <meta property="og:title" content="Web Design Services in Chicago | YourBrand">
  <meta property="og:description" content="Custom, mobile-first web design in Chicago. Free consultation, 15+ years experience.">
  <meta property="og:type" content="website">
  <meta property="og:url" content="https://www.yourbrand.com/services/web-design">
  <meta property="og:image" content="https://www.yourbrand.com/images/og.jpg">
  <meta property="og:image:width" content="1200">
  <meta property="og:image:height" content="630">
  <meta property="og:locale" content="en_US">
  <meta property="og:site_name" content="YourBrand">

  <!-- Twitter -->
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:title" content="Web Design Services in Chicago | YourBrand">
  <meta name="twitter:description" content="Custom, mobile-first web design in Chicago.">
  <meta name="twitter:image" content="https://www.yourbrand.com/images/og.jpg">
  <meta name="twitter:site" content="@YourBrand">

  <!-- Favicons -->
  <link rel="icon" type="image/x-icon" href="/favicon.ico">
  <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
</head>

FAQ

Which meta tags actually affect Google rankings?

Only the <title> tag and the robots meta tag directly affect rankings. The meta description influences click-through rate (which is a behavioral signal but not a direct input). Open Graph, Twitter Cards, and keywords have no ranking effect.

Do I still need a meta keywords tag?

No. Google has ignored <meta name="keywords"> since September 2009. Bing treats it as a potential spam signal when stuffed. Removing it is safe and recommended.

What's the difference between Open Graph and Twitter Cards?

Open Graph (og:*) is a Facebook-originated protocol now read by Facebook, LinkedIn, Slack, iMessage, Discord, WhatsApp, and most other link-preview consumers. Twitter Cards (twitter:*) are Twitter/X-specific. If you only set Open Graph, Twitter falls back to it — but explicit twitter:* tags let you customize image and copy for that platform.

Where should the charset meta tag go?

First, before any other tag inside <head>. The HTML spec requires <meta charset> to appear within the first 1024 bytes of the document; placing it after a long <title> or other tags can cause encoding errors.

Is the lang attribute on <html> a meta tag?

No — it's an HTML attribute, not a meta tag. But it serves a similar declarative purpose and is required for accessibility (WCAG 3.1.1) and for Google's language detection. Always set it: <html lang="en">.

Do meta tags affect AI search engines like ChatGPT and Perplexity?

Yes, indirectly. AI crawlers (GPTBot, ClaudeBot, PerplexityBot, OAI-SearchBot) read the same HTML head. The title, meta description, and Open Graph tags are commonly surfaced in AI citations and snippets. Make sure robots.txt allows these bots if you want AI visibility.

Should I use the same meta description on similar pages?

No. Google Search Console flags duplicate descriptions under HTML Improvements, and Google is more likely to rewrite duplicates with auto-generated snippets. Each indexable page should have a unique description tailored to its primary query.

Are theme-color and msapplication-TileColor still useful?

They have no SEO value, but they still control browser UI: theme-color sets the address bar color on Chrome Android and Safari, and msapplication-TileColor sets the Windows tile background for pinned sites. Keep them if you care about brand consistency in those surfaces.

Does Google use meta description as a ranking factor?

No. Google publicly confirmed in 2009 that the meta description is not a ranking factor. It influences click-through rate, which is a behavioral signal, but it does not directly raise or lower rankings.

Conclusion

Meta tags are not magic, and most of them aren't ranking levers. But the handful that matter — title, description, canonical, robots, viewport, charset, and the social-sharing pair — are the difference between a page Google understands and shows correctly, and a page that gets buried, mis-snippeted, or rendered badly on every social platform that touches it. Get the eight tags above right, delete the legacy ones, and you're done.