开发者

SEO Language information

开发者 https://www.devze.com 2023-02-04 19:40 出处:网络
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:

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)


It's probably better to define anything you can and have the search engine disregard it, than to not and leave it completely up to chance. The more information you give them the better.


Usually, I stick with the 3rd one, the content-language meta tag, as described here.


probabay should be on webmasters.stackexchange.com but anyways

You should combine 2 and 3. Faith does not work with bots/spiders.

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" />

good luck


On top of defining your language in the html you can signup for the Google Webmaster tools. On that site you can set your geographic target to France (Site configuration -> Settings).

http://www.google.com/webmasters/tools


andrewk is right - use 2 or 3 , but take into account that in most cases the language will be detected by the robot it self automatically.

0

精彩评论

暂无评论...
验证码 换一张
取 消