Skip to content
Novus Examples
html519 B

HTML where canonical and robots noindex conflict

A page that names itself canonical while telling robots not to index it, and then contradicts that again with an agent-specific googlebot meta that permits indexing. For testing directive precedence when a page argues with itself.

Preview — first 17 lineshtml
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Seasonal sale | Example</title>
<link rel="canonical" href="https://www.example.com/catalog/sale">
<meta name="robots" content="noindex,follow,max-snippet:-1">
<meta name="googlebot" content="index,follow">
<link rel="alternate" hreflang="en" href="https://www.example.com/catalog/sale">
</head>
<body>
<h1>Seasonal sale</h1>
<p>Sample page. Fictional offers.</p>
</body>
</html>

Specifications

Seed
70400
Site
example.com (fictional)
Format
HTML5 head fixture
Encoding
UTF-8
Canonical Tags
1
Robots
noindex,follow
Agent Override
googlebot
Conflict
true

Testing contract

Expected to fail
Scenario
Decide whether the page is indexable, for a generic crawler and for Googlebot.
Expected result
A generic crawler applies noindex and drops the page; Googlebot applies the more specific agent meta and indexes it; the canonical is reported as moot for the agent that obeys noindex.

What is a .html file?

HTML (HyperText Markup Language) is the structural markup language of the web, using nested tags to define document content, semantics, and links. It is typically paired with CSS for presentation and JavaScript for behavior. It is the foundational format rendered by browsers.

How to use this file

Use an example HTML file to test parsers, DOM construction, sanitization of untrusted markup, and rendering or scraping pipelines.

How to use this file for testing

“HTML where canonical and robots noindex conflict” is a deterministic Novus Examples fixture for Web assets, HTML parsing, Metadata testing. Favicons, web app manifests, service workers, robots and sitemap files, Open Graph images, and .well-known resources — for testing web tooling, crawlers, PWA installers, and asset pipelines.

Documented properties for this file: seed 70400 · UTF-8 · HTML5 head fixture. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Web-platform fixtures are standards-compliant samples against fictional example.com data. Test crawlers, PWA installers and manifest validators, favicon/icon pipelines, service-worker registration, or .well-known parsers against the documented structure.

Generated by generation/web_p7.py. Free for any use, no attribution required — license.