Pergunta

I see many big sites are not using <html lang="en-US"> or anything similar. Lang is also not available in <Meta> tag. I checked few websites. hub.tutsplus.com and ReadWrite.com are not using any. Few are using as well.

So, I am concerned about:

Is there any effect of Lang attribute on SEO?

Is there any benefits of using lang attribute? I read that Screen Reader and Search Engine can use this. Anything else? What will be the impact of missing lang attribute.

What will be better: <html lang="en-US"> or <html lang="en"> ?

Update: I checked that ReadWrite is using Server header "Content-Language". So, Which is better? Using server side or using lang attribute. From here, I know that lang takes precedence than Meta.

I am an Indian and I just write English (I meant, I cannot say I write US or UK English). In this case, will it be useful to use only lang="en" instead of lang="en-US"?

Does any have impact on performance?

Foi útil?

Solução

Is there any effect of Lang attribute on SEO?

At least the W3C says that it is "assisting search engines" in a documentation for @lang in HTML 4.01. That information is most likely still valid.

What will be better: <html lang="en-US"> or <html lang="en"> ?

Both are valid according to BCP 47. Actually it is best practice to avoid language subtags unless they really provide useful information for applications that read or display the content. For example it might be, that the regional variants of certain languages recommend the use of different glyps when they are displayed. In that case it would be helpful to tell the application, which regional variant it is facing.

I am an Indian and I just write English (I meant, I cannot say I write US or UK English). In this case, will it be useful to use only lang="en" instead of lang="en-US"?

In your case it is certainly better to use lang="en".

I checked that ReadWrite is using Server header "Content-Language". So, Which is better?

The usage of lang="en" as an attribute to <html> is recommended, if the content really is in English. If you are not so sure about the language of the site's content and merely want to specify the language of your intended audiance, you might rather use a declaration in the HTTP header.

By the way, the W3C has a interesting article on Internationalization Best Practices, on which my answer is based.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top