I was wondering if defining your language in HTML is better for search enigines. For example, I’ve got a French site, then i’ve got three options:
1.) have faith that google can say my site is french
2.) define language in the HTML tag
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="fr">
3.) define language in a meta tag
<meta http-equiv="content-language" content="FR-fr" />
Which option you believe is best? Or which combination of options?
language (language (i.e.: french) != location market (i.e. france)) detection is done on a per page basis (not per site).
it detects the language via the words used on the page (and in the URL), it does not care about the HTML tag (1) and the meta tag (2).
(you can test via the language detect api what language google thinks your page is using http://code.google.com/apis/language/translate/v1/using_rest_langdetect.html )
i always go for the 1 page === 1 language approche. i always make sure that i only have one language per page (translating all of the navigation, making sure that other language content does not and can not show up on the page)