Which one is the right way to add geolocation meta info to a site?

大城市里の小女人 提交于 2019-12-22 12:28:29

问题


I'm looking how to add meta info to a page. One way is the meta tag

<metatag name="country" content="Canada" />

another I saw is

<metatag name="geo.country" content="CA" />

using the ISO 3166.

I like the second one because is standard with ISO and easy to understand by crawlers. Which one of these options is standard? Or most of the crawlers accept them ?

I know that Google does not use any of them, but Bing does.

One site is for desktop web browsers and another one is for WAP (mobile) browsers. Is there any difference?


回答1:


Why not use both? BTW it's <meta /> not <metatag />

From what I've seen, though, geo.country may be the way to go.

http://marketingblogonline.com/geo-tag-seo.html

I still don't see any reason not to use both, though.

EDIT: Actually, poking around a little more I see that <meta name="country"> doesn't seem to be doing much– http://www.google.com/support/forum/p/Webmasters/thread?tid=0610ddf168b8d424&hl=en.

You also want to consider that a global business probably shouldn't have a country tied to it, anyway. Otherwise you're limiting your customer base.

But, if you are certain that making your website local will help your business, I have just read that HTML5's lang attribute identifies both country and language.

<html lang="en-US">

http://en.wikipedia.org/wiki/ISO_3166-1 –– List of country codes

http://www.rfc-editor.org/rfc/rfc4646.txt –– How to write the lang attribute.



来源:https://stackoverflow.com/questions/6588857/which-one-is-the-right-way-to-add-geolocation-meta-info-to-a-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!