Technical SEO

How to Write Meta Tags for SEO: Title, Description, and Robots

A method guide to writing title tags and meta descriptions, placing robots meta tags, and checking live URLs before you ship. Includes a numbered workflow and free checker links.


To write meta tags for SEO, set a unique title tag and meta description on every indexable URL, use robots meta only for index directives, and keep Open Graph tags separate when you care about share previews. This is a method guide for developers and small teams shipping from templates, not a list of checker tools. When you need to validate what the world actually sees, use the free meta tag checker on a live URL after deploy.

Meta tags in the <head> do not replace good content or crawlable links, but they do control how search systems label and summarize a URL. The pieces that matter most for classic results are the title tag, the meta description, and robots directives when a page should not be indexed or followed.

Google may rewrite titles and descriptions when it believes another string fits the query better, so treat your tags as strong defaults, not guarantees. The goal is still the same: every important route should declare a clear topic, a honest snippet, and the correct index state before you ask for traffic.

This guide stays in that lane. It does not replace a full SEO workflow for developers, a structured data project, or the on-page section inside why a site is not showing on Google. It goes deep on meta tags only.

Write the Title Tag

The title tag is the primary label Google uses for the blue link in results and the default tab title in browsers. Write it for the query the page actually answers, not for internal naming.

Title tag rules that survive templates

  • One unique title per canonical URL. Listing pages, filters, and tag archives need explicit rules so they do not all inherit the site name.
  • Lead with the topic. Put the primary subject in the first words; add brand when it helps disambiguation.
  • Match intent, not jargon. A integration page should name the integration. A comparison page should name the comparison axis.
  • Keep it readable when truncated. Google cuts by pixel width, so ultra-long titles lose their tail in the SERP.
Weak title Stronger title
Orchory Meta Tag Checker for Live URLs | Orchory
Blog post How to Write Meta Tags for SEO | Orchory
Features - Pricing - Docs API Monitoring for SaaS Teams | ExampleCo

In code, the title usually lives in a layout partial or a per-route metadata object. The review question is simple: if this title appeared in results with no other context, would a buyer know what the page is about?

Write the Meta Description

The meta description is the default snippet text under the title. Google has treated it as a hint rather than a ranking lever, but it still influences clicks when Google shows your text.

Description patterns that work

  • State the outcome. Tell the reader what they can do or learn after the click.
  • Do not paste the first paragraph. Snippets should complement the body, not duplicate it.
  • Include a concrete scope. Mention format, audience, or constraint when it clarifies intent.
  • Skip quotation-mark stuffing and keyword lists. They read poorly in results and age badly in templates.

Generate descriptions from structured fields when you can, then spot-check high-value routes manually. Pricing, integrations, and category hubs deserve human review because they carry commercial intent.

Practical rule: If you would not use the description as ad copy for the page, rewrite it before you ship the template change.

Robots Meta Tags Versus robots.txt

Teams confuse these because both mention "robots." They operate at different layers. robots.txt is a site-wide crawl permission file. A meta name="robots" tag (or an X-Robots-Tag HTTP header) is a per-URL index directive such as noindex or nofollow.

Google's guidance is explicit: robots.txt controls crawling, while robots meta tags and X-Robots-Tag control indexing and link following. Blocking a URL in robots.txt does not reliably remove it from the index, and it can stop Google from fetching the page to read a noindex tag. Use the right control for the job.

When you only need to draft crawl rules for a new site, the free robots.txt builder helps you assemble allow, disallow, and sitemap lines. That tool does not replace per-route noindex on staging, admin, or thank-you pages. Those belong in your template or server headers.

Open Graph as an Optional Sibling

Open Graph tags (og:title, og:description, og:image, and related fields) shape previews in social apps and messengers. They are not a substitute for search title and description tags, and they should not absorb this page's job.

When share cards matter, set OG tags deliberately: stable image dimensions, accurate titles, and descriptions that match the landing experience. Validate a live URL with the Open Graph checker instead of guessing from local HTML. Keep search meta and social meta in separate checklist rows so one template change does not silently break the other.

Numbered Steps to Ship Meta Tags on Every Route

Use this sequence when you are fixing one template or rolling metadata across a SaaS marketing site.

  1. Inventory indexable routes. Export public URLs from your sitemap generator or router list. Drop staging, auth, and post-checkout paths.
  2. Define a metadata schema. Require title, description, canonical, and robots for each page type. Document defaults for blog posts, docs, and landing pages.
  3. Write titles by intent. Apply the title rules above route by route, starting with money pages and templates that spawn many URLs.
  4. Write descriptions by outcome. Pair each title with a snippet that sells the visit, not the keyword list.
  5. Set robots deliberately. Use noindex on internal search, thin filters, and success pages; keep public marketing pages indexable unless legal or product policy says otherwise.
  6. Deploy and fetch the live URL. Confirm the production response, not just your dev build.
  7. Run the meta tag checker. Paste the URL into the meta tag checker (the legacy /meta-tag-analyzer path redirects there) and fix mismatches in the template.
  8. Spot-check social tags if needed. When campaigns depend on share previews, run the Open Graph checker on the same URLs.
  9. Record the template contract. Add a short comment or schema in code listing required fields so the next route inherits the same rules.

Repeating this loop on a schedule beats one giant audit deck. Meta tags fail quietly: the page renders, but the snippet shows the wrong title or an accidental noindex.

Check Your Tags on a Live URL

View-source on localhost proves your template intent, not what CDN headers, A/B layers, or CMS overrides emit in production. After deploy, check one representative URL per template family.

The meta tag checker extracts title, description, canonical, and robots tags from a public URL without an account. Use it as a gate before you mark SEO metadata work done. For broader utilities, browse Orchory free SEO tools, then return here when you need writing rules rather than extraction.

When you want help turning metadata fixes into a steady page pipeline, not just one template pass, send your site to Orchory. You keep review control; Orchory ranks page opportunities and prepares agent-ready prompts while your team ships the template and content changes.

FAQs

What is the difference between the title tag and the H1?
The title tag is the default label for search results and browser tabs. The H1 is the on-page heading readers see. They can match when the query is obvious, but the title tag should still read well in a result list. Keep one H1 per page and make the title tag unique per URL.
How long should a meta title be?
Google does not publish a fixed character limit. It truncates by pixel width, so short, front-loaded titles usually survive better than long brand-first strings. Aim for a clear primary topic in the first few words, then add brand or context only when it helps disambiguation.
Do meta descriptions affect rankings?
Google has said meta descriptions are not a direct ranking signal. They still matter for clicks because Google often uses them as the snippet under the title. Write a description that states the outcome of visiting the page, not a copy of the first paragraph.
What is the difference between robots meta and robots.txt?
Robots.txt tells crawlers which URLs they may fetch. Meta robots (or an X-Robots-Tag header) tells indexers what to do with a URL they already fetched, such as noindex or nofollow. Blocking a URL in robots.txt does not replace noindex, and it can prevent Google from seeing a noindex tag on that URL. See Google's crawl versus index guidance linked in the robots section above.
Do I need Open Graph tags for Google search?
Open Graph tags primarily shape social and messaging previews. They do not replace title and description tags for classic search snippets. Add them when you care about share cards, and validate them separately with an Open Graph checker. Keep this page focused on search meta tags.
How do I test meta tags on a page I already published?
Fetch the public URL and read what the server returns, not what your local dev server shows on localhost. Use the free meta tag checker to extract title, description, canonical, and robots tags from one live URL, then fix the template and recheck after deploy.
Jozef Fekete
SEO writer at Orchory

Jozef writes and edits practical SEO guidance for Orchory, with a focus on helping small teams turn search research into pages they can actually ship. Every article is reviewed before it goes live.

← All articles

Stop reading about SEO. Ship it.

Give Orchory your business profile and it maps your keyword strategy, then hands your coding agent the prompts to build the pages, one pull request at a time.

See how the AI SEO agent turns an answer gap into a reviewed pull request

Your first page is free. We build it before the call and bring it with us.