The Title Tag
The title tag (<title>) is the single most important on-page SEO element. It tells search engines what the page is about, appears as the clickable blue headline in search results, and displays in browser tabs and bookmarks. Getting it right is non-negotiable.
Optimal Length
Google displays approximately 50–60 characters before truncating, though this is pixel-width-based rather than character-count-based. Wider characters (like M and W) take more space than narrow ones (like i and l). Aim for 50–60 characters as a practical guideline, ensuring your primary keyword and brand name both fit. According to Google's official title link documentation, Google may rewrite titles that are too long, too short, or stuffed with keywords.
Best Practices
- Place the primary keyword near the beginning of the title
- Include your brand name at the end (e.g., "Guide to CSS Gradients | ToolMasta")
- Write for humans first — the title should make someone want to click
- Make each page title unique across your entire site
- Avoid keyword stuffing — it triggers rewrites and looks spammy
Meta Description
The meta description does not directly affect Google's ranking algorithm, but it strongly influences click-through rates — which do matter. A compelling description that accurately summarises the page content and includes a call to action can significantly increase the percentage of searchers who click your result.
Optimal Length
Google typically shows up to approximately 155–160 characters on desktop and slightly fewer on mobile. Write descriptions of 150–160 characters that include your primary keyword, communicate the page's value proposition, and ideally include a subtle call to action.
<meta name="description" content="Master CSS gradients: linear, radial, and conic. Complete syntax guide with colour stops, angle notation, repeating gradients, and browser support.">
Note: Google frequently rewrites meta descriptions when it believes the page's content provides a better match for the user's query. This is not a failure — it means Google is showing users relevant snippet text. However, a well-written description is often used verbatim and gives you control over first impressions.
Canonical Tag
The canonical tag (rel="canonical") solves one of the most common technical SEO problems: duplicate content. When the same content is accessible via multiple URLs (e.g., https://example.com/page and https://example.com/page?ref=newsletter), search engines must decide which version to index and rank. Without a canonical tag, ranking signals may be diluted across multiple URLs.
<link rel="canonical" href="https://toolmasta.com/blog/seo-meta-tags-guide">
Every page should have a self-referencing canonical tag — even pages that are not duplicated. This is a defensive measure: if someone else copies your content, their canonical (if they are a responsible publisher) will point to your URL. The Google Search Central guide on canonical URLs provides official guidance.
Meta Robots Tag
The meta robots tag controls how search engine crawlers interact with your page. Its two primary directives are index/noindex (whether the page should appear in search results) and follow/nofollow (whether crawlers should follow links on the page).
<!-- Default: index and follow all links -->
<meta name="robots" content="index, follow">
<!-- Hide from search results -->
<meta name="robots" content="noindex, nofollow">
<!-- Index but do not follow links -->
<meta name="robots" content="index, nofollow">
Use noindex for pages that should not appear in search results: login pages, admin areas, search results pages, filtered e-commerce views with near-duplicate content, and staging environments. The Google robots meta tag documentation covers all available directives including nosnippet, noimageindex, and max-snippet.
noindex, nofollow together on a page you simply want to keep out of search results but whose outbound links you still want to pass value to. Use noindex, follow in that case — search engines will still crawl and credit the links from that page, just without indexing the page itself.
Viewport Meta Tag
The viewport meta tag is technically not an SEO tag, but it is essential for mobile usability — and mobile usability is a direct Google ranking factor. Without it, mobile browsers render pages at desktop widths and scale them down, creating a tiny unreadable display.
<meta name="viewport" content="width=device-width, initial-scale=1">
This is a required tag in every modern HTML page. width=device-width sets the page width to the device's screen width. initial-scale=1 sets the initial zoom level. Do not add maximum-scale=1 or user-scalable=no — these prevent users from zooming, which is an accessibility violation and a Google ranking negative. The MDN viewport meta tag documentation provides a complete reference.
Charset Declaration
The charset declaration should be the very first tag in your <head>, before anything else — including the title tag:
<meta charset="UTF-8">
UTF-8 is the universal character encoding that supports every character in every language. Without it, browsers may misinterpret your page encoding, causing character display errors. The declaration must appear in the first 1024 bytes of the document to take effect before the parser processes any content.
Open Graph Tags
Open Graph (og:) tags control how your pages look when shared on social media — Facebook, LinkedIn, Discord, Slack, and many other platforms read these tags to generate rich link previews. For a complete guide to Open Graph, see our dedicated article: Open Graph Tags Explained.
The minimum essential set for any page:
<meta property="og:title" content="Page Title Here">
<meta property="og:description" content="Page description for social sharing">
<meta property="og:type" content="website">
<meta property="og:url" content="https://toolmasta.com/page/">
<meta property="og:image" content="https://toolmasta.com/images/og-image.jpg">
The og:image should be at least 1200×630 pixels. Facebook recommends 1200×630 for optimal display across all its surfaces. Images smaller than 600×315 trigger a small image format in the link preview card, which performs significantly worse in feeds.
Twitter Card Tags
Twitter (now X) uses its own card tags, though it also falls back to Open Graph values when Twitter-specific tags are absent. The most important Twitter card tags:
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Page Title Here">
<meta name="twitter:description" content="Description for Twitter">
<meta name="twitter:image" content="https://toolmasta.com/images/twitter-card.jpg">
Use summary_large_image for articles and content pages — it shows a large hero image above the title. Use summary for utility pages where a thumbnail is sufficient. The image should be at least 1200×630 pixels for summary_large_image.
Complete Meta Tag Checklist
Use this checklist for every new page you publish:
- Charset declaration (UTF-8, first in <head>)
- Viewport meta tag
- Title tag (50–60 characters, primary keyword near start)
- Meta description (150–160 characters, includes keyword and CTA)
- Canonical tag (self-referencing)
- Meta robots (index, follow for all public pages)
- Open Graph: og:title, og:description, og:type, og:url, og:image
- Twitter: twitter:card, twitter:title, twitter:description, twitter:image
Try It Free — No Signup Required
Generate all your meta tags instantly with ToolMasta's free meta tag generator — fill in the form and copy the code.
Generate Meta Tags Now