: HTML Lang ISO Code I have a multi-language site for English and Chinese (Hong Kong). My previous setting for Chinese Hong Kong (zh-hk) had: <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"
I have a multi-language site for English and Chinese (Hong Kong). My previous setting for Chinese Hong Kong (zh-hk) had:
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-hk" xml:lang="zh-hk">
Shortly, I began to notice browser with other Chinese language sub-codes like zh-tw and zh-cn were seeing my English site in search engines instead of Chinese Hong Kong (zh-hk), which makes sense.
I want to change my html lang to:
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh" xml:lang="zh">
Would this cover all Chinese language settings? Also, would Google prefer to show pages that match language subcodes of the browser/country (zh-hk for Hong Kong, zh-cn for Taiwan) than a general language code (zh)?
More posts by @Sherry384
1 Comments
Sorted by latest first Latest Oldest Best
...would Google prefer to show pages that match language subcodes
From: Google Webmaster Central - Working with multilingual websites
Keep in mind that Google ignores all code-level language information,
from “lang” attributes to Document Type Definitions (DTD). Some web
editing programs create these attributes automatically, and therefore
they aren’t very reliable when trying to determine the language of a
webpage.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.