Mobile app version of vmapp.org
Login or Join
Sherry384

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

@Sherry384

Posted in: #Language #Seo #Serps

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)?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sherry384

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

...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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme