Mobile app version of vmapp.org
Login or Join
Gail5422790

: Should I specify both and for multilingual websites? I have read Google's recommendations regarding <link rel="alternate"> in the <head> for multilingual websites. As far as I know,

@Gail5422790

Posted in: #Hreflang #Html #Multilingual

I have read Google's recommendations regarding <link rel="alternate"> in the <head> for multilingual websites.

As far as I know, we can also use rel="alternate" on <a> tags, and so far I've been using this technique on visible links to switch between different languages of my website like this:

<ul>
<li>
<a href="/en/" rel="alternate" hreflang="en" lang="en">English</a>
</li>
<li>
<a href="/fr/" rel="alternate" hreflang="fr" lang="fr">Français</a>
</li>
</li>


The Google Webmaster Tools answer doesn't mention this technique in regards to <a> tags though, so should I use <link> tags in the header in addition to <a> tags in the body, even though they are redundant?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gail5422790

1 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

Definitely keep the <link> tags in your <head> section. I've never read anywhere that Google actually acknowledges rel="alternate" on <a> tags. Also many other bots may only retrieve the <head> of your documents, so if those <link> tags aren't in the header, they may never actually see them. But I don't think that having the rel="alternate" on your <a> tags in addition to having them in the HEAD would make any difference.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme