DE | EN
← PageScore

Meta Tags Best Practices

The complete guide to HTML meta tags: Title, Description, Viewport, Robots, Canonical, Open Graph, and Twitter Cards. With character limits and examples.

What Are Meta Tags?

Meta tags are HTML elements in the <head> section of a page that provide search engines and social networks with information about the page content. They are not visible to visitors but significantly influence how your page appears in search results and shared links.

Title Tag

The title tag is the most important meta tag for SEO. It appears as the clickable heading in search results and in the browser tab.

Rules for Good Title Tags

<title>Meta Tags Best Practices — The Complete Guide | PageScore</title>

Common mistakes: Keyword stuffing ("SEO SEO Guide SEO Tips"), overly generic titles ("Homepage"), missing titles.

Meta Description

The meta description does not directly affect ranking, but it is crucial for click-through rate (CTR) in search results. A good description can increase CTR by 5–10%.

Rules for Good Meta Descriptions

<meta name="description" content="The complete guide to HTML meta tags: Title, Description, Viewport, Open Graph, and more. With character limits, examples, and common mistakes.">

Viewport Tag

The viewport tag is essential for mobile rendering. Without it, the browser renders the page at desktop width and scales it down.

<meta name="viewport" content="width=device-width, initial-scale=1">

This tag should be present on every page. Avoid maximum-scale=1 or user-scalable=no, as these prevent zooming and harm accessibility.

Robots Tag

The robots tag controls how search engines should handle a page.

<!-- Default: Index and follow links -->
<meta name="robots" content="index, follow">

<!-- Do not index the page -->
<meta name="robots" content="noindex, follow">

<!-- No snippet in search results -->
<meta name="robots" content="index, nosnippet">

<!-- Limit snippet length -->
<meta name="robots" content="max-snippet:160, max-image-preview:large">

Canonical Tag

The canonical tag tells search engines the preferred URL version of a page. This is important when the same page is accessible under multiple URLs (with/without www, with/without trailing slash, with parameters).

<link rel="canonical" href="https://pagescore.de/meta-tags-guide">

Open Graph Tags

Open Graph tags determine how your page looks when shared on Facebook, LinkedIn, WhatsApp, or other platforms.

<meta property="og:title" content="Meta Tags Best Practices — PageScore">
<meta property="og:description" content="The complete guide to HTML meta tags with examples and best practices.">
<meta property="og:image" content="https://pagescore.de/images/meta-tags-guide-og.jpg">
<meta property="og:url" content="https://pagescore.de/meta-tags-guide">
<meta property="og:type" content="article">
<meta property="og:site_name" content="PageScore">
<meta property="og:locale" content="en_US">

OG Image Recommendations

Twitter Card Tags

Twitter (X) uses its own meta tags for displaying shared links. If no Twitter tags are present, most platforms fall back to Open Graph tags.

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Meta Tags Best Practices">
<meta name="twitter:description" content="The complete guide to HTML meta tags.">
<meta name="twitter:image" content="https://pagescore.de/images/meta-tags-guide-og.jpg">

Hreflang Tags

If your website is available in multiple languages, hreflang tags help search engines display the correct language version for each user.

<link rel="alternate" hreflang="de" href="https://pagescore.de/meta-tags-guide?lang=de">
<link rel="alternate" hreflang="en" href="https://pagescore.de/meta-tags-guide?lang=en">
<link rel="alternate" hreflang="x-default" href="https://pagescore.de/meta-tags-guide">

Meta Tags Checklist

Check your website's meta tags automatically with PageScore — free and in seconds.