I have a multilingual and multiregional (using different subdomains) website and I'm not sure how to handle those 3 elements.
To summarize here are the hreflang links that I generate on each page (internal page here):
<link href="http://mywebsite.com/" rel="alternate" hreflang="x-default" title="International" />
<link href="http://uk.mywebsite.com/internal-page" rel="alternate" hreflang="en-GB" title="Internal page">
<link href="http://fr.mywebsite.com/fr/page-interne" rel="alternate" hreflang="fr" title="Page interne">
<link href="http://be.mywebsite.com/fr/page-interne" rel="alternate" hreflang="fr-BE" title="Page interne">
<link href="http://be.mywebsite.com/nl-be/interne-pagina" rel="alternate" hreflang="nl-BE" title="Interne pagina">
<link href="http://nl.mywebsite.com/nl/interne-pagina" rel="alternate" hreflang="nl" title="Interne pagina">
<link href="http://it.mywebsite.com/it/pagina-interna" rel="alternate" hreflang="it" title="Pagina interna">
<link href="http://ch.mywebsite.com/de/internen-seite" rel="alternate" hreflang="de-CH" title="Internen Seite">
<link href="http://ch.mywebsite.com/fr/page-interne" rel="alternate" hreflang="fr-CH" title="Page interne">
Where the default domain (http://mywebsite.com/
) isn't a country selector dedicated page (although there is a country-language selector on top of the page). It is in fact our international version of the website that contains only english content.
- Are the above links correct? and is the title attribute relevant/useless or wrong?
- Canonical tags are absolute links. E.g. in an internal page of Italian domain in italian language.
<link rel="canonical" href="http://it.mywebsite.com/it/pagina-interna">
- I use XHTML 1.0. What values should I use on
xml:lang
attributes on the HTML tag?