Contents
Got a question about your site?
Book a short consultation – I will tell you where to start.
Meta tags are snippets of code in the <head> section that tell search engines, browsers and social networks what a page is and how to treat it. For SEO, the ones that matter most today are: title, meta description, meta robots, canonical and viewport. You can safely skip meta keywords – Google doesn’t use it.
Below you’ll find a cheat sheet with the most important tags, an explanation of why Google sometimes rewrites your title and description, and a few of my own practical templates.
What are meta tags?
Meta tags are HTML tags, usually in the form <meta name=”…” content=”…”>, that pass on information about a page instead of displaying content. They describe, for example, what the page is about (description), whether it can be indexed (robots), how to display it on a phone (viewport) or what its preview on social media should look like (Open Graph). In everyday use, people also lump the <title> tag and the canonical element in with ‘meta tags’, even though strictly speaking they aren’t <meta> tags. If you already know all this, feel free to skip ahead to the cheat sheet and the practical tips. It’s also worth a look at the post where I’ve already written a bit about meta tags: How to write content for SEO.
Meta tags aren’t visible in the page content, so for users they matter only indirectly. Although – sorry – when you bookmark a page in your browser, the title tag is used to name your bookmark. Of course you can always change that text, so its usefulness ‘on the page’ is a solid 2/10 🤷.

Meta tags are used mainly by bots: search engine bots (Google, Bing, DuckDuckGo), but also those of Facebook, LinkedIn or X when someone shares a link. Search engines take them into account when building how a result looks – the title and description – but they don’t treat them as a strict instruction. I write below about what Google actually displays.
Most often, the blue text in the search results (Google calls it the title link) is the text from the <title> tag, and the short description below it (the snippet) is sometimes the text from the meta description. ‘Most often’ and ‘sometimes’ are the key words here – Google can generate both elements itself.
Meta tags – how do you add them to a page?
Most modern CMSs (content management systems) have fields for the title and description. In some of them, though, you still need to install an SEO plugin that adds meta robots, canonical or Open Graph.
In general, the point is to get the right lines into the <head> section of the page’s code. Here’s an example of a complete, sensible set:
<head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>My page title – brand</title> <meta name="description" content="This is where I put the description that may appear in the search results."> <link rel="canonical" href="https://example.com/my-page/"> <meta property="og:title" content="My title for shares"> <meta property="og:image" content="https://example.com/image.jpg"> ... </head>
Put these tags in the <head> section of the page’s code. Google points out that the <head> section must be valid HTML – if, for example, an unclosed element ‘slips in’ before the meta tags, Google may not read them. There’s one exception, which Google documented in March 2026 (the behaviour didn’t change, it just hadn’t been written down before): meta robots is respected even when it ends up in the <body>. Don’t take that as an invitation to make a mess – Google will still ignore a canonical outside the <head>.
Cheat sheet: the most important meta tags
| Tag | Example | What it’s for | Does Google use it? |
|---|---|---|---|
| title | <title>Meta tags – a guide</title> | Page title, the main source of the title link in the results | Yes, but it may rewrite it |
| meta description | <meta name=”description” content=”…”> | Page description, sometimes used as the snippet | Yes, but the snippet more often comes from the content |
| meta robots | <meta name=”robots” content=”noindex”> | Indexing and display rules for all search engines | Yes |
| meta googlebot | <meta name=”googlebot” content=”nosnippet”> | The same, but for Google only | Yes |
| X-Robots-Tag | X-Robots-Tag: noindex (HTTP header) | Robots rules for PDFs, images and other files | Yes |
| canonical | <link rel=”canonical” href=”https://…”> | Indicates the preferred version of a URL | Yes, as a strong hint |
| viewport | <meta name=”viewport” content=”width=device-width, initial-scale=1″> | Display on mobile devices | Yes |
| charset | <meta charset=”utf-8″> | Character encoding (accented letters!) | Yes |
| hreflang | <link rel=”alternate” hreflang=”en” href=”https://…”> | Language and regional versions of a page | Yes |
| Open Graph | <meta property=”og:title” content=”…”> | Link preview on social media | Indirectly (og:title can be a source of the title link) |
| Twitter/X cards | <meta name=”twitter:card” content=”summary_large_image”> | Link preview on X | No |
| meta keywords | <meta name=”keywords” content=”…”> | A list of keywords | No, it has no effect |
How do you write SEO-friendly meta tags?
First of all, have a look at the section on titles in my guide How to write content for SEO. You’ll find concrete examples there of how to prepare meta tags. A few things may overlap with that article. But given that it runs to around 25,000 characters, I imagine you won’t necessarily feel like leafing through the whole thing 🐹
Title – the title meta tag
⚠️ Let’s start with this: the content of the <title> tag is one of the strongest signals telling Google what a page is about, and at the same time the first thing a user sees in the results. From my experience: polishing your titles is one of the cheapest changes that can genuinely move rankings and CTR. Nobody can guarantee growth, though.
➡️ How many characters should a title have? Google has no character limit – its documentation says the title link is truncated when necessary, usually to the width of the device’s screen. In practice I assume the most important words should fit in the first 50–60 characters or so, because beyond that you risk truncation.

Is a title that’s too long or too short a critical error? No. Google Search Console doesn’t report title length these days – warnings like that come from tools such as SEO crawlers. A title that’s too short is untapped potential. One that’s too long gets truncated and ends with an ellipsis. Will that alone cause visibility problems? NO.
In online shops, where product names are very long, it’s sometimes hard to keep title length under control. It’s also tempting to cram in as many keywords as possible – which is a bad idea, because Google explicitly lists repeating phrases as a practice to avoid, and a title like that is more likely to be rewritten.
Personally, I always try to build titles on this template:
[keyword/key phrase] - [keyword variant] - [location] - [call to action]
For example, for the keyword ‘coffee mug’:
Coffee mug - Drinking coffee from a mug - See how to drink coffee from a mug!
Why do I use this template? When I write a title, I keep in mind that the words in it should form pairs, triples or other combinations with each other:
Google Business Profile – how to create a Google Maps listing – Guide
With a title like this, we can pick out these pairs/groups of keywords:
- Google Business Profile guide
- how to create a Google Business Profile
- Google Maps listing
- Google listing guide
- how to create a Google listing
plus many other longer and shorter combinations. Based on keyword search volume data, you can use different kinds of combinations in the title – I write about where to get that data in my post on how to find topics for SEO.
Why does Google change my title?
Since 2021, Google has been generating the title link on its own much more often. According to its documentation, it considers not only <title> but also, among other things, the main visible title on the page, headings (e.g. <h1>), og:title, large and prominent text, the anchor text of links pointing to the page, and WebSite structured data (for the site name).
Google lists the typical reasons for rewriting a title:
- ‘half-empty’ titles – e.g. just the brand name,
- obsolete titles – e.g. an old year in the title when the content is newer,
- inaccurate titles – the title doesn’t match the page content,
- repetitive boilerplate – the same text on many similar pages,
- no clear main title on the page – several equally prominent headings,
- a different language or script in the title than in the content,
- a duplicated site name – e.g. the brand name twice in one title; Google may also drop the site name from the title link if it already shows it above the result.
The takeaway: if you want Google to show your title, keep the title, the H1 heading and the content consistent. You can’t force it with any tag.
Is the title just keywords?
Absolutely not! Remember that whatever you put in the title will usually appear in the search results as the blue, highlighted text. If you put an unattractive, dull description there – users won’t click your result! You have to find the sweet spot between keywords and a reason to click. There’s no universal recipe for that.
What kind of hooks can you add? What will draw users’ attention to your search result? And what draws your attention to different pages?
A newbie searching, or meta tags in action
If you’re new to a topic, you’ll most likely go through the results one after another. Opening 10 pages from the search results is as natural here as the fact that a slice of buttered toast always lands butter side down.
Once you come across a result that develops your question, you change your Google query and look for more specific answers. You’ll also instinctively start skipping, for example, video pages or online forums.
So at first, knowing nothing about the topic, you’ll search through page after page that Google shows you. Once you’ve learned a bit more (and have something to go on), you’ll start looking for specific kinds of pages that will give you a specific answer.
But what will you base your decision on as to whether a given page is of interest to you or not?
- The site’s domain/brand
- The page title (the blue text)
- How deeply the document is nested (URL)
- The page description (the grey text)
It doesn’t always work this way, but in the vast majority of cases this is exactly how you’ll decide whether to click a result or not.
The takeaway? Look after your title tag!
Meta description – show that you care about the user
If you see that someone is trying to get your interest in a page description, and on top of that the words you searched for are in bold, you can be fairly sure that this someone has looked after their site’s SEO.

You need to know that the meta description isn’t a ranking factor. That doesn’t mean, however, that you should ignore it altogether! Oh no! A well-written meta description can increase the number of clicks from Google to your site (improve CTR).
Important: Google builds the snippet primarily from the page content, and uses the meta description when it decides it describes the page better for a specific query. That’s why the same result can have different descriptions for different queries.
How to use the meta description
Something didn’t fit in the title? Add it to the meta description. Something in the title needs explaining? Add it to the meta description. Want to add keywords to show the user clearly – YES, WE’VE GOT IT? Add them to the meta description, but in sentences, not as a list of phrases.
Duplicate meta descriptions
Duplicate meta descriptions – i.e. the same description on many pages – are a common mistake, especially in online shops and on sites with templated descriptions. Google says plainly that identical or similar descriptions on every page aren’t helpful. You won’t get a penalty for it, but Google will probably ignore such a description anyway. For large sites, Google encourages generating descriptions automatically from page data (e.g. price, manufacturer, specifications) – as long as they’re readable and varied.
How do you find them? The easiest way is to run your site through a crawler: the free version of Screaming Frog SEO Spider checks up to 500 URLs, and you can run an audit in Ahrefs Free (formerly Ahrefs Webmaster Tools) at no cost for a verified site. You’ll find more free steps like this in my free SEO audit (SEO Quick Wins). Both tools will show you groups of pages with identical descriptions and titles.
You can also add emoji to the meta description. You’ve probably seen sites more than once with emoji like these in their descriptions: ✅ ⚠️ or ⭐️. It’s no complicated trick. You don’t need to install anything either.
To open the emoji picker, just press:
Windows: Win+. (full stop) or Win+; (semicolon)
macOS: Control+Command+Space

Of course, as with everything – don’t overdo the number of emoji. Remember too that Google decides for itself whether to show emoji in a result. If you don’t see them, it doesn’t have to mean any kind of ‘block’ – Google simply found them unnecessary or used a different piece of text.
What else can you put in a meta description? You have almost complete freedom. It can be an email address, a phone number or basic product information.
How many characters should a meta description have? Google has no length limit for the meta description – the snippet is truncated when necessary, usually to the width of the screen. In practice I write descriptions of around 120–160 characters and put the most important information at the start. As with the title: too little text is untapped potential, too much – and you’ll get an ellipsis.
‘Read more’ links in the snippet
Since April 2026, Google’s snippet documentation has described ‘read more’ deep links – links in a result’s snippet that take people straight to a specific section of the page. No meta tag will trigger them, but you can improve the chances of them appearing:
- the content should be visible as soon as the page loads – don’t hide it in collapsible sections or tabs,
- don’t scroll the page with JavaScript on load,
- if you use the History API or change window.location.hash on load, don’t strip the #anchor fragment from the URL – that breaks deep links.
If the content is properly marked up with structured data, you can get an expanded, highly engaging result (a so-called rich result). For example:

or, for example:

It all comes down to how well you look after your site. Learn more about the Schema.org vocabulary and structured data.
Meta robots – index, noindex, nofollow and the rest
Meta robots tells the search engine whether to index a page and how to show it. The default value is index, follow (Google calls it all), so if you don’t want to restrict anything, you don’t need to add this tag at all.
<meta name="robots" content="noindex, nofollow">
The most important rules Google supports:
- noindex – don’t show the page in search results,
- nofollow – don’t follow the links on this page,
- none – the same as noindex, nofollow,
- nosnippet – don’t show a text snippet or video preview; according to Google this also applies to AI Overviews and AI Mode, and the page’s content won’t be used as direct input for AI answers,
- max-snippet:[number] – maximum number of characters in the snippet (0 = same as nosnippet, -1 = Google chooses the length); the limit also applies in AI Overviews and AI Mode,
- max-image-preview:[none / standard / large] – maximum size of the image preview,
- max-video-preview:[number] – maximum length of the video preview in seconds,
- noimageindex – don’t index images from this page,
- notranslate – don’t offer a translation of the page in the results,
- unavailable_after:[date] – don’t show the page after the specified date,
- indexifembedded – allow embedded content (e.g. via an iframe) to be indexed despite noindex.
Google marks the noarchive, nocache and nositelinkssearchbox rules as no longer used – the cached page and sitelinks search box features they controlled simply don’t exist any more. If you have them in your code, they don’t hurt, but they don’t do anything either. When rules conflict, Google applies the more restrictive one (e.g. with max-snippet:50 and nosnippet, nosnippet wins).
You can exclude individual parts of a page from the snippet with the data-nosnippet attribute – it only works on <span>, <div> and <section> elements. Google asks you not to add or remove it with JavaScript on elements that already exist.
If you want to keep your whole site out of AI Overviews and AI Mode, you don’t need to fiddle with meta tags: since 31 August 2026, Search Console has had a Search generative AI control for all sites (Settings > Search generative AI; by default your site is included). Excluding your site doesn’t affect the regular search results. The Google-Extended token in robots.txt, on the other hand, is about training models and other Google systems, not AI Overviews.
⚠️ The most common trap: blocking a page in robots.txt and at the same time adding noindex. If Googlebot can’t fetch the page, it won’t see the noindex either – and the URL may still appear in the results (e.g. when links point to it). Want to remove a page from the index? Add noindex and let it be crawled. When to use robots.txt and when noindex – and how that relates to crawl budget – I explain in my post on crawl budget.
Googlebot vs other bots
name=”robots” applies to all search engines. If you want to give a rule to Google only, use name=”googlebot” (or googlebot-news for Google News). You can combine both tags – Google will then add up the rules and apply the more restrictive one.
<meta name="robots" content="max-image-preview:large"> <meta name="googlebot" content="nosnippet">
X-Robots-Tag – meta robots in the HTTP header
You can’t mark up a PDF or an image with a meta tag, because they have no <head> section. That’s what the X-Robots-Tag HTTP header is for – it accepts the same rules as meta robots, e.g.:
X-Robots-Tag: noindex X-Robots-Tag: googlebot: nofollow
You set it in the server configuration (Apache, Nginx, LiteSpeed) or in the application code. Checking that the headers and meta robots don’t contradict each other is a fixed item in every SEO audit I do.
Canonical – pointing to the canonical version
Strictly speaking it’s not a meta tag but a <link> element, yet it always ends up in the same conversation. The canonical indicates which URL is the preferred version of a page when the same content is available at several URLs (parameters, sorting, versions with and without a trailing slash).
<link rel="canonical" href="https://example.com/category/product/">
- Google treats the canonical as a strong hint, not an instruction – it may choose a different URL.
- It must be in the <head> – in the page body Google will ignore it.
- Use full, absolute URLs (with https://).
- For PDFs, the canonical can be sent in the HTTP header.
- Don’t use noindex or robots.txt as a substitute for the canonical.
Viewport and charset – the technical minimum
Viewport tells the browser how to display the page on a mobile device. Google says its presence is a signal to Google that the page is mobile-friendly. The standard value is width=device-width, initial-scale=1.
Charset sets the character encoding. In practice it should almost always be UTF-8 – otherwise accented letters (in Poland, where I work, that means ą, ę, ł and friends) in the title and description can turn into gibberish. It’s best placed at the very start of the <head>.
Open Graph and Twitter/X cards
Open Graph is a protocol used by Facebook and LinkedIn, among others, to build a link preview (title, description, image). The basic properties are og:title, og:type, og:image and og:url, and it’s worth adding og:description, og:site_name and og:locale (e.g. en_GB for British English). Note that here you use the property attribute, not name.
<meta property="og:title" content="Meta tags – a cheat sheet"> <meta property="og:type" content="article"> <meta property="og:image" content="https://example.com/image.jpg"> <meta property="og:url" content="https://example.com/meta-tags/"> <meta name="twitter:card" content="summary_large_image">
X (formerly Twitter) has its own twitter:* tags, but when they’re missing it falls back on the Open Graph equivalents. So in practice a full set of OG tags plus twitter:card, which sets the card type (e.g. summary or summary_large_image), is enough.
OG doesn’t directly affect rankings in Google, but og:title is on the list of sources Google may use to build the title link.
Hreflang – briefly on language versions
If you have a site in several languages or for several countries, hreflang shows Google the equivalents of a given page:
<link rel="alternate" hreflang="pl" href="https://example.com/pl/"> <link rel="alternate" hreflang="en-GB" href="https://example.com/en-gb/"> <link rel="alternate" hreflang="x-default" href="https://example.com/">
Three rules that break most often: every version must point to itself and to all the others (the links must be reciprocal, otherwise Google ignores them), the first code is the language, not the country (en-GB, not GB), and the URLs must be full, with https://. Instead of in the <head>, hreflang can also be given in the HTTP header or in the XML sitemap.
Meta keywords – how many keywords should you put in the meta? Zero
In short: don’t enter any – Google doesn’t use the meta keywords tag. You can still come across a ‘meta keywords’ field in various plugins. In theory, you’re supposed to enter the keywords related to the page/post in question.
In practice – it’s not worth even a fraction of a second to fill in that field. Why? Since 2009 (!!!!!!) Google has officially not used this tag for ranking, and its current documentation says outright that it has no effect on indexing or rankings. So the question ‘how many keywords should I put in the meta’ has a simple answer: zero. See for yourself: Google does not use the keywords meta tag in web ranking.
Remember: put the words you’d like to place in the keywords tag in the content of your article, in the title and in the headings (sensibly, of course, not one after another). You can read more about choosing phrases in my post on keywords.
Which SEO plugin for my CMS?
As I mentioned, some CMSs need extra plugins to make managing meta tags convenient.
Below are some example solutions for popular CMSs. A disclaimer – I haven’t tested all of them myself.
WordPress – The SEO Framework, All in One SEO, Rank Math, SEO WordPress, Yoast
PrestaShop – the basic meta title and meta description fields are built in (the SEO tab for products and categories). For extensions, have a look at the SEO category of the PrestaShop Addons marketplace.
Drupal – Metatag
Most software delivered as SaaS (Software as a Service), e.g. e-commerce platforms, has fields – named in various ways – that let you fill in the relevant meta tags. These sections are often called ‘SEO’, ‘marketing’, ‘search engine’ or something similar.
No meta tags – what happens?
If you don’t plan to fill in titles and descriptions – for whatever reason – the world won’t end. Google and other search engines can analyse the content on the page and prepare the result’s title and description themselves. It has to be said, though, that automatically generated text is rarely as engaging as text written with the user in mind.
It’s a different story with the title – Google recommends that every page has one – and with the technical tags. A missing viewport, a badly set canonical or a forgotten noindex after launching a new version of the site can do far more damage than a missing meta description. A missing description is mainly a lost chance of a better CTR 🤷.
One more thing – meta tags in Google News
Meta tags aren’t only useful for improving visibility in organic search. Google applies the same title link rules in its other services too, including Google News. That’s why, when writing titles for news articles, you need to focus on telling users very specifically what they’ll find in the article, and keep the title consistent with the article’s headline.

On news sites, max-image-preview:large also comes in handy – it lets Google show large thumbnails, which matters for visibility in article cards. For Google News itself, you can target rules with the googlebot-news tag.
To sum up:
- Google has no character limit for the title or description – it truncates them to the screen width. In practice: title around 50–60 characters, description around 120–160 characters.
- Google may rewrite the title and description – the best defence is consistency between the title, the H1 and the content.
- Every page should have a unique title and description – duplicate meta descriptions are wasted potential.
- You can use emoji in the title and description, but Google doesn’t have to show them.
- The title is an important signal for the search engine; the meta description affects CTR, not rankings.
- Meta robots (noindex, nosnippet, max-snippet, max-image-preview) and X-Robots-Tag control indexing and how the result looks.
- The canonical is a hint, not an instruction. Viewport and UTF-8 charset are the technical minimum.
- Open Graph and twitter:card handle link previews on social media.
- Meta keywords – skip it, Google doesn’t use it.
- Structured data can give you a richer search result.
FAQ – the most common questions about meta tags
What are meta tags?
Meta tags are HTML tags placed in the <head> section that give search engines and browsers information about a page: its description, indexing rules, character encoding or how to display it on a phone. Users don’t see them in the page content.
How long should a meta description be?
Google doesn’t set a limit – a longer description will simply be truncated to the screen width. I aim for around 120–160 characters and put the most important information at the start.
How long should a title be?
There’s no official limit here either. In practice, it’s worth fitting the key words into the first 50–60 characters, because the rest may get cut off.
How many keywords should I put in meta keywords?
None. Google doesn’t use meta keywords for either indexing or ranking. Put your keywords in the title, headings and content.
Do duplicate meta descriptions harm a site?
There’s no penalty, but identical descriptions on many pages help neither Google nor users – Google is more likely to replace them with a snippet of the content. It’s worth fixing: every important page should have its own description.
What’s the difference between meta robots and X-Robots-Tag?
The rules are the same; the difference is where they live: meta robots sits in the <head> of the HTML document, while X-Robots-Tag is an HTTP header, so it also works for PDFs, images and other files.
Are special characters in titles and descriptions a problem?
No, as long as the page uses UTF-8 encoding and quotation marks in the content attribute are properly encoded (e.g. "). Accented letters, dashes and emoji are fine – just don’t turn your title into a row of symbols.
Got the feeling Google shows your pages with a different title and description than you want, or suspect something is blocking indexing? That’s exactly the kind of thing I check during SEO consulting – usually faster than digging through the code yourself.






Leave a Reply