Loading...
<link rel="alternate" hreflang="en-uk" href="https://example.com/uk/">
<link rel="alternate" hreflang="es" href="https://example.com/es/"><link rel="alternate" hreflang="en-GB" href="https://example.com/uk/">
<link rel="alternate" hreflang="es" href="https://example.com/es/">
<link rel="alternate" hreflang="x-default" href="https://example.com/">Region codes are country codes, so the UK is 'en-GB', and 'x-default' covers all other visitors.
hreflang only on the main page and not on the translated pages.No, on <a> it is only a hint about the target's language. Search engines read hreflang on <link rel='alternate'>.
Yes, search engines also read hreflang from XML sitemaps and HTTP headers, so you can pick one method.