seolivly
Meta tags guide

Which Meta Tags Does a Page Need?

Most pages need five tags in the head, plus a handful for sharing. Everything else is optional or obsolete. Here is the list, with a full example.

The short answer

Every HTML page should have a charset, a viewport, a title, a meta description and, in most cases, a canonical link. Pages that get shared should add Open Graph tags for the title, description, URL and image. A robots meta tag is only needed when you want something other than the default, which is "index this page and follow its links".

That is the whole core list. Plenty of older tutorials add a long tail of other tags. Most of them do nothing for search today.

The core tags, one by one

  • <meta charset="utf-8"> goes first in the head so the browser decodes the text correctly. Without it, accented letters and symbols can turn into junk characters.
  • Viewport (width=device-width, initial-scale=1) tells phones to use the real screen width. Leave it out and a responsive layout renders like a zoomed-out desktop page.
  • Title is the text in the browser tab and the usual source of the headline in search results. Write one per page, with the main phrase near the start.
  • Meta description is a one or two sentence summary. It does not move rankings directly, but search engines often show it under the title, so it shapes whether people click.
  • Canonical names the URL you want indexed when the same page is reachable at several addresses, for example with tracking parameters or with and without a trailing slash. A self-referencing canonical on every page is a safe default.

Tags for sharing

When someone pastes your link into a social feed or chat app, the platform reads Open Graph tags to build the card. The four that matter are og:title, og:description, og:url and og:image. Add og:type (website or article) and og:site_name if you like. X reads Open Graph as a fallback, so the only X-specific tag most sites need is twitter:card, which picks the small or large image layout.

The share image should be a full https:// URL. Around 1200 x 630 pixels works for large cards on most platforms. You can check how a card looks in the Open Graph preview.

A worked example

Say you run a bakery and are publishing a page for your sourdough class. Here is a complete head block for it, the kind the meta tag generator writes:

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sourdough Baking Class in Leeds | Harbour Street Bakery</title>
<meta name="description" content="Learn to bake sourdough in a three-hour Saturday class. Small groups, all ingredients included, and you take home your own starter.">
<link rel="canonical" href="https://example.com/classes/sourdough/">

<meta property="og:title" content="Sourdough Baking Class in Leeds">
<meta property="og:description" content="Three hours, small groups, and your own starter to take home.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/classes/sourdough/">
<meta property="og:image" content="https://example.com/img/sourdough-class-1200x630.jpg">

<meta name="twitter:card" content="summary_large_image">

Note what is missing: no robots tag, because the page should be indexed normally, and no keywords tag. The share title is shorter than the search title because the brand already shows on the card. The search title leads with what people search for and keeps the brand at the end, where truncation costs least.

Tags you can skip

  • Meta keywords. Google has ignored it for ranking for many years. It only tells competitors what you target.
  • Revisit-after, distribution, rating "general". Leftovers from early search engines with no effect on modern ones.
  • Author and generator. Harmless, but they do nothing for search. Keep author information visible on the page and in Article markup instead.
  • A robots tag that says "index, follow". That is already the default. It does no harm, but it is not needed.

Meta tags in WordPress and other CMSs

If your site runs on WordPress, Shopify, Squarespace or a similar platform, you rarely paste meta tags by hand. The platform or an SEO plugin prints them from fields in the page editor: an SEO title box, a description box, and often a social tab for the share title and image. Charset and viewport normally come from the theme.

That makes the job different. Instead of writing tags, you check that each field is filled and that the output is what you expect. Three checks catch most problems:

  1. View the live source of one page of each type: home, post, product, category. Look for exactly one title, one description and one canonical.
  2. Check the title template. Plugins often add the site name and a separator automatically. Make sure the final title is not twice as long as the one you typed.
  3. Check archive pages. Tag, author and date archives often have thin, repeated titles. Many sites set them to noindex in the plugin settings.

For a hand-built page, a static site or an email landing page, the generator's output is the whole job: paste it into the head and you are done.

Common mistakes

  • A noindex left over from staging. One line can keep a whole site out of search. Check the live head after every launch.
  • Relative canonical or image URLs. Use full https:// addresses; social platforms cannot resolve relative image paths.
  • Duplicate tags. A theme and a plugin both print a description or canonical, often with different values. View the source and search for each tag name once.
  • The same title and description on every page. Each page needs its own, or they compete with each other and say nothing specific.
  • Canonical pointing at the wrong page. Copying a template can leave every page claiming the home page as its canonical, which asks search engines to ignore the rest.

After publishing, paste the page source into the SEO checker to confirm the tags came out as intended, and preview the result in the SERP snippet preview.

Frequently asked questions

Which meta tags are most important for SEO?

The title tag matters most, followed by the meta description for clicks, the canonical for duplicate URLs, and a robots tag only when you need noindex.

Do I still need the meta keywords tag?

No. Google ignores it for ranking. You can safely remove it.

Where do meta tags go in the HTML?

Inside the head element, before the closing head tag. Put the charset first.

Does every page need a canonical tag?

It is not required, but a self-referencing canonical on each page is a safe default that prevents duplicate-URL confusion.

Do Open Graph tags affect rankings?

Not directly. They control how shared links look, which affects clicks from social and chat apps.

How do I check what meta tags a page has?

View the page source (Ctrl+U or Cmd+Option+U) and search for meta, or paste the source into an on-page SEO checker.

Keep going