SEO Meta Tags and Robots
Beyond the title tag, a small set of meta tags directly shapes how search engines index and present your pages. This page covers the description, robots directives, authorship, and a preview of canonical URLs.
Meta description best practices
<meta name="description" content="Learn how HTML meta tags control indexing, snippets, and social previews — with practical examples for every tag that matters." />
Write a genuine, specific summary of the page — not a generic sentence reused everywhere.
Aim for roughly 150–160 characters; longer descriptions get truncated in search results.
Include the primary topic naturally, but never keyword-stuff — it reads poorly and doesn't help rankings.
Every page should have its own unique description.
Treat it as ad copy for your page — its job is to earn the click, not to rank directly.
Robots meta tag: noindex, nofollow, none
<meta name="robots" content="noindex" /> <meta name="robots" content="nofollow" /> <meta name="robots" content="noindex, nofollow" /> <meta name="robots" content="none" />
Directive | Effect |
|---|---|
noindex | Keep this specific page out of search results |
nofollow | Don't pass ranking signal through this page's outbound links |
none | Shorthand for "noindex, nofollow" together |
noarchive | Don't show a cached copy of the page in search results |
A page can also target a specific crawler by using its name instead of the generic robots value, e.g. <meta name="googlebot" content="noindex">.
meta name="author"
<meta name="author" content="Let Codes" />
Declares the author or organization behind the content. It has no direct ranking effect, but is used by some tools and browser features, and is good practice for attribution and transparency.
Canonical URL preview
<link rel="canonical" href="https://example.com/blog/html-seo-guide" />
When the same content is reachable at more than one URL (with tracking parameters, via HTTP and HTTPS, with and without a trailing slash), the canonical link tells search engines which URL is the authoritative one to index. This tag is covered in full detail on its own page, alongside hreflang for multi-language sites.
X-Robots-Tag response header — useful for non-HTML files like PDFs, where there is no <head> to put a meta tag in.