Valid set
- <link rel="canonical" href="https://example.com/" />
- <link rel="alternate" hreflang="en" href="https://example.com/" />
- <link rel="alternate" hreflang="es" href="https://example.com/es/" />
web validator
Validate canonical and hreflang tags to avoid duplicate-content and localization issues.
Canonical tag must be present with a valid absolute URL.
hreflang tags must include language codes (e.g., en, en-us) and valid URLs.
Flags duplicate hreflang codes and invalid URLs.
Structure and presence check only; does not assess page content or indexing status.