Google Says Hreflang Attributes Should Not Be Used in Anchor Tags


Google’s John Mueller advises SEOs on the correct, and incorrect, ways to use hreflang attributes on a web page.

In a thread on Reddit, a user asks whether hreflang attributes can be used in anchor tags. In testing, the user found that Google didn’t pick up on any hreflang attributes when placed in anchor tags.

Mueller responded to the thread saying “we don’t do that” – meaning Google doesn’t look for hreflang attributes in anchor tags. He goes on to advise the ways in which hreflang attributes should be used.

“Use link tags in the head if you want hreflang to be picked up. Hreflang is hard enough when you do things technically correct, don’t make it harder by hoping it works in non-documented ways.”

To be clear, Google looks for hreflang attributes in the <link> tag within the <head> of an html document. Hreflang attributes will be ignored if used in anchor text.

The SEO who started the Reddit thread notes that hreflang attributes were found in anchor text when checking the code of someone they work with. It would be interesting to know why they thought it was a good idea in the first place, but the Reddit user didn’t state why.

There is SEO & Web Designing Company Steamboat Springs, CO which can help you to get affordable website designs and SEO services for your business.

Comments

  1. Dear William

    This is very informative article for me.Thanks for this nice technique. Thanks for the great post.

    ReplyDelete

Post a Comment

Popular posts from this blog

How Pinterest Can Help You Make More Money

How Web Design Has Been Transformed By Social Media

A Good Web Design Is All You Need To Begin!