Skip to content

How to Write Meta Tags That Boost Your Search Rankings

What Are Meta Tags?

Meta tags are HTML elements placed in the <head> section of a web page that provide metadata — information about the page that is not visible to readers but is read by search engines, social media platforms, and browsers. They control how your page appears in search results, how it displays when shared on social media, and how browsers interpret and render your content.

Generate all essential meta tags with WritePadPro's Meta Tag Generator — enter your page details and get properly formatted HTML meta tags ready to paste into your site's head section.

Meta tags do not appear on the page itself. They live in the source code, invisible to casual visitors but critically important for SEO, social sharing, and technical functionality. A page without proper meta tags is like a book without a title page — the content may be excellent, but search engines and social platforms struggle to present it properly.

Essential Meta Tags for Every Page

Title Tag (The Most Important)

<title>How to Write Meta Tags That Boost SEO | WritePadPro</title>

The title tag is one of the most important on-page SEO elements. It appears as the clickable headline in search results, the browser tab title, and the default text when the page is bookmarked. Rules:

  • Length: 55-60 characters (Google truncates beyond ~600 pixels)
  • Keyword placement: Front-load the primary keyword in the first 3-4 words
  • Uniqueness: Every page must have a distinct title — no duplicates across your site
  • Brand: Optionally append your brand name: "Topic | BrandName"

Meta Description

<meta name="description" content="Write meta tags that improve SEO and social sharing. Learn title tags, meta descriptions, Open Graph, and Twitter Cards.">

The meta description appears below the title in search results. It does not directly affect rankings but strongly influences click-through rate — a compelling description gets more clicks from the same ranking position.

  • Length: 150-160 characters
  • Content: Include primary keyword + clear benefit + call to action
  • Uniqueness: Every page needs a unique description

For crafting compelling descriptions, see our How to Write Meta Descriptions guide. For overall SEO strategy, see the SEO Content Writing Guide.

Viewport (Mobile Responsiveness)

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

Required for responsive design. Without it, mobile devices render the page at desktop width and shrink to fit — producing tiny, unreadable text. Every responsive site needs it.

Charset (Character Encoding)

<meta charset="UTF-8">

Declares the character encoding. UTF-8 supports every Unicode character and is the HTML5 default. Must be in the first 1024 bytes of the HTML document.

Open Graph Tags (Social Sharing)

Open Graph (OG) tags control how your page appears when shared on Facebook, LinkedIn, Discord, Slack, and most social platforms. Without OG tags, social platforms attempt to scrape your page and may display incorrect titles, descriptions, or images.

<meta property="og:title" content="How to Write Meta Tags That Boost SEO">
<meta property="og:description" content="Learn title tags, meta descriptions, Open Graph, and Twitter Cards.">
<meta property="og:image" content="https://writepadpro.com/images/meta-tags-og.jpg">
<meta property="og:url" content="https://writepadpro.com/blog/meta-tags-guide">
<meta property="og:type" content="article">
<meta property="og:site_name" content="WritePadPro">

The Essential OG Tags

TagPurposeNotes
og:titleTitle displayed on social platformsCan differ from the title tag — optimize for social engagement
og:descriptionDescription below the titleCan differ from meta description — focus on shareability
og:imagePreview image when sharedMinimum 1200x630px for best display. Must be an absolute URL.
og:urlCanonical URL of the pagePrevents duplicate content issues from shared URLs with tracking parameters
og:typeContent type"article" for blog posts, "website" for homepage

The Image Is Everything

The og:image is often the most noticeable OG tag, because a large preview image takes up most of a shared link card. The image must be: at least 1200x630 pixels, hosted at an absolute HTTPS URL, under 8 MB in file size, and in JPG, PNG, or WebP format.

Twitter Card Tags

Twitter (X) uses its own meta tags alongside Open Graph tags to control how links appear in tweets.

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="How to Write Meta Tags That Boost SEO">
<meta name="twitter:description" content="Learn essential meta tags for search and social.">
<meta name="twitter:image" content="https://writepadpro.com/images/meta-tags-og.jpg">

Card Types

TypeAppearanceBest For
summarySmall square image + title + descriptionGeneral pages, homepage
summary_large_imageLarge landscape image + title + descriptionBlog posts, articles (recommended)
playerEmbedded video/audio playerVideo and podcast content
appApp download cardMobile app landing pages

If you set Twitter Card tags, Twitter uses them. If you do not, Twitter falls back to Open Graph tags. Setting both ensures optimal display across all platforms. Use the Schema Markup Generator for structured data alongside your meta tags. For related SEO tools, see the SEO Content Analyzer.

Robots Meta Tag

<meta name="robots" content="index, follow">

Controls how search engines crawl and index the page.

DirectiveMeaning
indexAllow this page to appear in search results (default)
noindexDo NOT show this page in search results
followFollow links on this page (default)
nofollowDo NOT follow links on this page
nosnippetDo not show a text snippet in search results
noarchiveDo not show a cached copy (Google no longer shows cached links, but other search engines may)
max-snippet:NLimit snippet text to N characters

Most pages should use the default (index, follow) or simply omit the robots tag entirely. Use noindex for: admin pages, staging environments, thin content pages, and duplicate content that canonical tags cannot resolve. For robots.txt (which controls crawling at the site level rather than page level), see our Robots.txt Guide.

Canonical Tag

<link rel="canonical" href="https://writepadpro.com/blog/meta-tags-guide">

The canonical tag tells search engines which URL is the "official" version of the page. This prevents duplicate content issues when the same content is accessible at multiple URLs (with/without www, with/without trailing slash, with tracking parameters).

Every page should have a canonical tag pointing to its preferred URL. If you do not set one, search engines guess — and they may guess wrong, splitting your page authority across multiple URLs.

Using WritePadPro's Meta Tag Generator

WritePadPro's Meta Tag Generator produces all essential meta tags from your input.

Step 1: Enter Page Details

Open the Meta Tag Generator and fill in the page title and meta description (both required), then the page URL, share image URL, and site name. Choose the OG type, Twitter Card type, and robots directive, and optionally add an author and keywords.

Step 2: Review the Tags

The HTML updates as you type, so there is no separate generate step. It includes charset, viewport, title, meta description, robots, canonical, Open Graph (type, title, description, URL, image, site name), and Twitter Card (card type, title, description, image) tags, plus author and keywords tags if you fill them in. Checkboxes let you leave out the canonical, viewport, or charset tag.

Step 3: Preview

The tool shows live previews of a Google result, a Facebook share, and an X (Twitter) card, and character counters warn when the title or description runs long. The previews are mockups, not actual platform renders. Adjust your title and description until they look right.

Step 4: Copy and Paste

Click Copy Meta Tags and paste the HTML into your page's <head> section. All tags are properly formatted and ready for production use.

Privacy

All generation runs locally in your browser. Your page details are never sent to any server. If you enter a share image URL, your browser loads that image from its host to show it in the previews.

Summary

Meta tags control how your page appears in search results (title + description), on social media (Open Graph + Twitter Cards), and to search engine crawlers (robots + canonical). The title tag is one of the most important on-page SEO elements, and the og:image is usually the most visible part of a shared link.

Every page needs at minimum: title tag (55-60 chars), meta description (150-160 chars), viewport tag, charset, canonical URL, and og:image. These 6 elements cover search, social, mobile, and duplicate content scenarios.

Generate all meta tags with WritePadPro's Meta Tag Generator — enter your details, preview the SERP and social appearance, and copy production-ready HTML. For structured data beyond meta tags, see our Schema Markup Guide.

Frequently Asked Questions

What is the difference between meta tags and schema markup?

Meta tags provide basic metadata in HTML meta elements: title, description, Open Graph data, robots directives. They control how the page appears in search results and social shares. Schema markup (structured data) provides detailed, machine-readable information using JSON-LD format: article publication date, author, FAQ questions and answers, product prices and ratings. Meta tags are simpler and cover the basics. Schema markup is more detailed and can make a page eligible for rich results (review stars, recipe cards, product details) in search results. Both are essential — meta tags for foundational SEO, schema for enhanced search features.

Do meta tags directly affect search rankings?

The title tag directly affects rankings — it is one of the strongest on-page relevance signals. The meta description does NOT directly affect rankings (Google has stated it is not a ranking factor), but it strongly influences click-through rate, so a good one can bring more visitors from the same position. The robots meta tag affects whether the page is indexed at all. The canonical tag affects which URL gets ranking credit. Open Graph and Twitter Card tags do not affect search rankings but affect social sharing visibility, which can bring traffic and, sometimes, links from other sites.

How do I check if my meta tags are correct?

Three methods: (1) View page source (Ctrl+U) and check the head section manually. (2) Use Google's Rich Results Test or URL Inspection tool in Search Console to see how Google reads your meta tags. (3) Use Facebook's Sharing Debugger (developers.facebook.com/tools/debug) to preview how your page appears when shared on Facebook. X's old Card Validator no longer shows previews, so test X cards by drafting a post with your link. WritePadPro's Meta Tag Generator includes built-in SERP and social previews so you can verify before publishing.

Should og:title be the same as the title tag?

It can be, but it does not have to be. The title tag is optimized for search engines — front-loaded keyword, brand name, 55-60 characters. The og:title is optimized for social engagement — can be more conversational, emotional, or curiosity-driven. For example: Title tag: 'Meta Tags Guide: SEO Best Practices | WritePadPro' (keyword-focused). og:title: 'Your Meta Tags Are Probably Wrong (Here Is How to Fix Them)' (curiosity-driven). Using different titles lets you optimize for both channels simultaneously.

What happens if I do not set Open Graph tags?

Social platforms attempt to scrape your page and generate a preview automatically. Facebook, for example, falls back to the title tag, text, and images it finds on the page. The results are unpredictable: the wrong image may be selected, the description may be truncated oddly, and the title may not match what you intended. Setting OG tags explicitly gives you control over exactly how your page appears when shared. Given that social shares drive significant traffic, leaving OG tags to chance means leaving clicks on the table.

Try These Tools

Related Articles