What meta tags do, and why search engines care about them
Meta tags are short text snippets you write in the code of your web page that tell search engines what your page is about. The two that matter most are the title tag (the headline that appears in search results) and the meta description (the preview text underneath it). Search engines use these to understand your page's topic, and they show them to people deciding whether to click your link.
A well-written title tag and description don't may provide higher rankings — Google's algorithm looks at dozens of other factors, from how many sites link to you to how fast your page loads. But they do affect whether people click when they see your page in results. A confusing or generic title tag means fewer clicks, even if your page ranks well. A clear, specific description that matches what someone searched for means more clicks.
The other meta tags (keywords, robots, viewport) matter less for ranking, but some still serve a purpose. The robots tag tells search engines whether to index a page at all. The viewport tag tells mobile browsers how to display your page. Keywords tags are largely ignored by Google now, though some smaller search engines still read them.
Key Takeaways
- Your title tag should be 50 to 60 characters long, include your main keyword near the start, and tell readers what they will find on the page.
- Your meta description should be 150 to 160 characters, summarize the page's main point, and include a reason to click.
- Write for people first — a title or description stuffed with keywords looks like spam and gets fewer clicks.
- The robots meta tag controls whether search engines index your page; use it only if you have a reason to block indexing.
- Check your tags in search results using Google Search Console to see how they actually appear to people searching.
How to write a title tag that gets clicks
Your title tag appears as the blue clickable headline in search results. It should be between 50 and 60 characters long — longer titles get cut off and show as "..." in most browsers. Put your main keyword or topic near the beginning, but only if it reads naturally. "Dog Training: How to Teach Your Dog to Sit" works better than "How to Teach Your Dog to Sit | Dog Training Tips" because the keyword comes first and the title reads like a sentence.
Include a benefit or reason to click when you can. "10 Beginner Mistakes in Python" tells a reader what they will learn. "Python Mistakes" does not. If your page is part of a larger site, you can add your brand name at the end — "10 Beginner Mistakes in Python | TechGuide" — but keep the main topic first. The brand name should take up no more than 10 characters, or your actual title gets cut off.
Avoid repeating the same keyword multiple times. "Best Dog Training | Dog Training Tips | Dog Training Methods" looks like you are trying to trick search engines, and Google may penalize it. Write one clear title, not a keyword list.
How to write a meta description that summarizes your page
Your meta description is the gray text that appears below your title in search results. It should be 150 to 160 characters long — anything longer gets truncated. Write it as a complete sentence or two that explains what the page covers and why someone should read it. "Learn the five most common mistakes beginners make when training dogs, and how to fix each one" is better than "This page is about dog training mistakes."
Include your main keyword naturally, but do not force it. If your page is about "how to train a dog to sit," your description might be "Step-by-step instructions for teaching your dog to sit, with tips for dogs that struggle with focus." The keyword appears once, in context, and the description tells a reader what they will find.
Do not write a description that is not actually on your page. If your description promises "five mistakes," but your page lists ten, people will click and then leave immediately. Google notices when people click a result and then go back to search results quickly — that signals the page did not match what was promised — and it may lower your ranking over time.
Where to put meta tags in your page code
Meta tags live in the head section of your HTML, not in the body where your visible content is. If you use a website builder like WordPress, Wix, or Squarespace, you do not write HTML directly — instead, you fill in fields labeled "SEO Title," "Meta Description," or "Page Title." The builder inserts the tags into the code for you.
In raw HTML, a title tag looks like this: <title>How to Train Your Dog to Sit | TechGuide</title>. A meta description looks like this: <meta name="description" content="Step-by-step instructions for teaching your dog to sit, with tips for dogs that struggle with focus.">. Both go between the opening <head> tag and the closing </head> tag, before your page's visible content begins.
If you are not sure where to find these fields in your website builder, search the builder's help documentation for "SEO" or "meta tags." Most builders have a dedicated section for them, usually near the page settings or publishing options.
The robots meta tag: when to use it
The robots meta tag tells search engines whether to index your page and follow links on it. Most of the time, you do not need this tag — search engines index your pages by default. You only need it if you want to block indexing for a specific page.
Common uses: a "thank you" page after someone fills out a form (you do not want it ranking in search results), a draft or test page you are still working on, or a page with sensitive information. The tag looks like this: <meta name="robots" content="noindex, nofollow">. "Noindex" tells search engines not to index the page. "Nofollow" tells them not to follow links on that page to other pages.
If you want to block a page from indexing but still have search engines follow its links, use <meta name="robots" content="noindex, follow">. If you want the page indexed but do not want search engines to follow its links, use <meta name="robots" content="index, nofollow">. Most pages do not need this tag at all — only add it if you have a specific reason.
Other meta tags that affect how your page displays
The viewport meta tag tells mobile browsers how to scale and display your page. It looks like this: <meta name="viewport" content="width=device-width, initial-scale=1">. This tag is essential — without it, mobile browsers may zoom out and make your text tiny. Most website builders add this automatically, but if you are writing HTML by hand, include it in every page's head section.
The charset meta tag tells browsers which character encoding your page uses. It looks like this: <meta charset="UTF-8">. UTF-8 is the standard for most websites and handles all languages and special characters. Add this to every page, and most builders do it automatically.
The keywords meta tag was once important for search ranking, but Google stopped using it years ago. You can still add it if you want — it does not hurt — but it will not improve your ranking. If you do use it, list 5 to 10 keywords separated by commas, and keep it under 160 characters. Example: <meta name="keywords" content="dog training, how to train a dog, dog behavior, puppy training">.
How to check your meta tags in search results
After you publish a page, check how your title tag and meta description actually appear in Google search results. The easiest way is to search for your page on Google and look at the result. Your title appears as the blue link, and your description appears below it. If either one is cut off or looks wrong, you can edit it and republish.
For a more detailed view, use Google Search Console (a free tool from Google). Sign in with your Google account, add your website, and go to the "Performance" section. You will see a list of pages that appeared in search results, along with the exact title and description Google is showing. If Google rewrote your title or description (it sometimes does if it thinks a different version is more relevant), you will see the rewritten version here.
If your title or description was rewritten and you do not like the new version, make sure your original tag is clear and specific. Google rewrites tags when it thinks they are too generic or do not match the page's content. A more specific, benefit-focused title or description is less likely to be rewritten.
Common mistakes that hurt your click-through rate
The most common mistake is writing a title or description that does not match what is actually on the page. If your title says "Free Dog Training Guide" but your page is behind a paywall, people will click and leave immediately. Google tracks this and may lower your ranking.
Another mistake is keyword stuffing — repeating the same word over and over to try to rank better. "Dog training dog training dog training tips for dog training" looks like spam, gets fewer clicks, and may trigger a manual penalty from Google. Write naturally, as if you are talking to a person, not a search engine.
A third mistake is making your title or description too long. Anything over 60 characters for a title or 160 for a description gets cut off in search results. People see "..." and do not know what the full text says. Keep it short and clear.
Finally, do not ignore mobile. Your title and description may display differently on phones than on desktops because screens are smaller. Test how your tags look on a phone by searching for your page on Google on a mobile device, or use Google Search Console's mobile-friendly test.
Frequently Asked Questions
Does Google use the keywords meta tag for ranking?
No. Google stopped using the keywords meta tag for ranking years ago. You can add it if you want, but it will not improve your search position. Focus on your title tag and meta description instead — those actually affect clicks and ranking.
Can I use the same title tag and meta description on multiple pages?
You can, but you should not. Each page should have a unique title and description that reflects its specific content. Duplicate tags confuse search engines about what each page is about, and they give people no reason to click one result over another. Write a different tag for each page.
What if Google rewrites my meta description?
Google rewrites descriptions when it thinks a different version is more relevant to what someone searched for. This is normal and usually fine — Google is trying to show the most useful preview. If you do not like the rewritten version, make your original description more specific and closely tied to the page's main topic.
How often should I update my meta tags?
Update them if your page's topic or content changes significantly, or if you notice your current tags are not getting clicks. Otherwise, leave them alone. Constantly changing tags sends confusing signals to search engines. Make changes only when you have a good reason.
Do meta tags affect page speed or mobile performance?
No. Meta tags are tiny pieces of text in your page's code and have no effect on how fast your page loads or how it performs on mobile devices. Page speed and mobile performance depend on image sizes, code efficiency, and server response time — not on meta tags.