Meta Tags, Robots.txt, Sitemaps & Structured Data for SEO
One reference for the page-level signals: what each tag does and who reads it, where robots.txt, noindex, canonicals and sitemaps contradict each other, and what we found auditing 781 of our own pages.
Most of what this page covers is one line of HTML each. The hard part is knowing which reader uses which line, and what happens when two of them disagree. The deep dives live in separate guides, linked from each row; this page is the map.
Who Reads Which Signal
| Signal | Where it lives | What Google does with it | Who else uses it | Deep dive |
|---|---|---|---|---|
<title> | <head> | One of nine sources for the title link in results; Google sets no length limit | Browser tabs and bookmarks | Meta tags |
| Meta description | <head> | Used for the snippet only when it describes the page better than the page text does | Meta tags | |
Robots meta tag or X-Robots-Tag | <head> or HTTP header | noindex removes the page from results; nosnippet and max-snippet shape the snippet | ||
rel="canonical" | <head> or HTTP Link header | A strong signal for which duplicate to index (redirects are the other strong one) | URL encoding | |
Open Graph (og:title, og:image ...) | <head> | og:title is one of the nine title-link sources | Link previews in apps that implement the Open Graph protocol | OG images |
twitter:card and friends | <head> | Not used | Link cards on X | OG images |
robots.txt | /robots.txt | Controls crawling, not indexing; a blocked URL can still be indexed without its content | Crawlers that follow RFC 9309 | robots.txt |
| XML sitemap | /sitemap.xml | Discovery, and a weak signal for which URL is canonical | Sitemaps | |
| JSON-LD structured data | <script> | Eligibility for rich results of supported types | Other search engines can still read types Google no longer displays | JSON-LD |
<meta name="keywords"> | <head> | Nothing: Google says it has no effect on indexing and ranking at all | ||
lang on <html> | <html> | Not used: Google detects the language from the text | Screen readers choose pronunciation from it; WCAG 2.2 success criterion 3.1.1 requires it |
Two rows surprise people. The keywords tag still appears in templates even though Google documents that it is ignored. And lang looks like an SEO tag but is an accessibility one: Google reads the language from your text, while a screen reader needs the attribute to pronounce the page correctly.
Where These Signals Contradict Each Other
Each of these combinations comes straight from Google's documentation, and each one undoes the other signal:
| Combination | What happens | Do this instead |
|---|---|---|
A page blocked in robots.txt that also has noindex | Google never fetches the page, so it never sees the noindex; the URL can still show up in results | Let it be crawled and keep the noindex, or put the page behind a password |
| robots.txt used to hide duplicate URLs | Google may index the blocked URLs anyway, without their content | A rel="canonical" tag or a redirect |
noindex on a duplicate to pick which version ranks | The page is removed from Search completely | rel="canonical", which Google calls the preferred solution |
| A sitemap listing URLs whose canonical points elsewhere | The sitemap (a weak signal) pulls against the canonical tag | List only canonical URLs |
<meta name="robots" content="nofollow"> meant for a few untrusted links | It applies to every link on the page | rel="nofollow", rel="ugc" or rel="sponsored" on those links only |
og:url different from the canonical | The Open Graph protocol treats og:url as the object's permanent ID, so shares collect under the other URL | Use the canonical URL in og:url |
| CSS, JavaScript or images blocked in robots.txt | If the page is harder to understand without them, Google analyzes it worse | Block only resources the page does not need to render |
What We Found Auditing 781 of Our Own Pages
We checked every page in our own sitemap on October 13, 2026: 783 URLs, 781 of them HTML pages (the other two are our llms.txt files). The script and its output are in our test folder.
| Check | Result |
|---|---|
<title> present and unique | 781 of 781, 0 duplicates |
| Meta description present and unique | 781 of 781, 0 duplicates |
| Canonical tag pointing at the page's own URL | 781 of 781 |
lang on <html> | 781 of 781 |
og:title, og:description, og:url, og:type | 781 of 781; og:url equals the canonical everywhere |
og:image | 780 of 781 when we started. The page without one was our own Social Card Debugger, which also declared a large image card with no image. Fixed. |
twitter:card | 673 summary (pages that share our square logo), 108 summary_large_image (pages with their own wide image) |
| JSON-LD | every block parses; BreadcrumbList on 780 pages, FAQPage on 644, WebApplication on 378, Article on 356 |
<meta name="keywords"> | still on 82 pages: harmless, and ignored by Google |
Pages marked noindex but listed in the sitemap | 0 |
The Social Card Debugger slipped through because our own build check looked for the tags anywhere in the file, and the tool's JavaScript contains them as text it generates for you. The check now reads only the <head>. That kind of false pass is the main risk with tag audits: a tag in the source is not necessarily a tag in the document.
Search Console data (pulled through the GSC Wizard connector) agrees on canonicals. Of the 314 URLs Google had not indexed on October 13, 262 were "Crawled - currently not indexed", 19 "Discovered - currently not indexed" and 33 unknown to Google, and in 0 cases had Google chosen a different canonical than ours. "Crawled - currently not indexed" means Google fetched the page and decided not to index it for now, which no tag can change. One structural loose end remains: our host answers seven spellings of each URL with the same page (measured in our URL encoding guide), so the canonical tag is doing all the consolidation there.
Titles and Descriptions: What Actually Gets Shown
Google sets no length limit on <title>; long titles are cut by display width, and Google can build the title link from eight other sources, including the main visible heading, <h1> elements, og:title, anchor text and the text of links pointing at the page. Its snippet documentation (updated April 20, 2026) says snippets are built mainly from page content, and that the meta description is used when it gives a more accurate description than the page text. The same page can show different snippets for different searches.
Research on result pages explains why the description still deserves care. Cutrell and Guan's eye-tracking study (CHI 2007) found that longer snippets made informational searches faster and more accurate but slowed navigational ones, a result later studies keep citing (Athukorala and colleagues, JASIST 2015). Sünkler and Lewandowski (Proceedings of ASIS&T, 2017) had 64 participants judge results after their searches: the results they had clicked scored a precision of about 0.8 at every rank, higher than the results overall, so people do pick well from what the snippet tells them.
So write the description as an accurate summary of the page, not a slogan, and check how title and description truncate in a Meta Tag Preview. Our guide to creating meta tags has the pixel widths we measured across our own titles.
Structured Data in 2026
JSON-LD is the format Google recommends, and the markup has to describe what the page visibly shows. What it earns has narrowed: Google retired HowTo rich results in September 2023, limited FAQ rich results to government and health sites at the same time, and stopped showing FAQ rich results for every site on May 7, 2026, removing them from the Rich Results Test in June and from the Search Console API in August. FAQPage is still valid Schema.org, and other search engines can still read it, but in Google it no longer changes how a result looks. Types that still produce rich results, and the fields each requires, are in our JSON-LD guide.
Checklist
- A unique, descriptive
<title>on every page. Skip fixed character counts; check how it truncates instead. - A meta description that summarizes the page accurately. Google may still write its own snippet.
- A canonical tag with the absolute URL you want indexed, and that same URL in
og:url, in your internal links and in the sitemap. og:title,og:description,og:image(absolute URL),og:urlandog:type;twitter:cardset tosummaryfor a square image orsummary_large_imagefor a wide one.- A robots
noindexonly where a page must stay out of results, and never on a page that robots.txt blocks. - robots.txt for crawl control only, leaving CSS, JavaScript and images the page needs to render unblocked.
- An XML sitemap listing canonical URLs only.
- JSON-LD that matches what the page shows.
langon<html>, for screen readers rather than for Google.- No meta keywords tag; it does nothing.
- [1]Google Search Central, Influencing title links (updated Dec 10, 2025) ↗
- [2]Google Search Central, Control your snippets (updated Apr 20, 2026) ↗
- [3]Google Search Central, Meta tags and attributes that Google supports (updated Dec 10, 2025) ↗
- [4]Google Search Central, Introduction to robots.txt (updated Dec 10, 2025) ↗
- [5]Google Search Central, Block search indexing with noindex (updated Dec 10, 2025) ↗
- [6]Google Search Central, How to specify a canonical URL (updated Jul 10, 2026) ↗
- [7]Google Search Central, Documentation updates log (FAQ rich results deprecation, May 2026) ↗
- [8]Google Search Central Blog, Changes to HowTo and FAQ rich results (Aug 2023) ↗
- [9]IETF RFC 9309, Robots Exclusion Protocol ↗
- [10]The Open Graph protocol (og:url as permanent ID) ↗
- [11]W3C, WCAG 2.2 Success Criterion 3.1.1 Language of Page ↗
- [12]Cutrell & Guan (2007), What are you looking for? An eye-tracking study of information usage in web search, CHI 2007 ↗
- [13]Athukorala et al. (2015), Is exploratory search different?, JASIST 67(11), found via Wiley Scholar Gateway ↗
- [14]Sünkler & Lewandowski (2017), Does it matter which search engine is used?, Proc. ASIS&T 54(1), found via Wiley Scholar Gateway ↗
