Quantcast
Channel: language+region value of the HTML5 lang attribute - Webmasters Stack Exchange
Browsing all 4 articles
Browse latest View live

Answer by Lèse majesté for language+region value of the HTML5 lang attribute

The W3C provides this very long guide on choosing language tags/subtags.The important bits:Language tag syntax is defined by the IETF's BCP 47. In the past it was necessary to consult lists of codes in...

View Article



Answer by Jukka K. Korpela for language+region value of the HTML5 lang attribute

Using <html lang="fr-FR"> and <html lang="fr-CA"> is fine, if they correspond to the actual content. But they are ignored by search engines, just as <html lang="fr"> is.HTML5 does not...

View Article

Answer by Su' for language+region value of the HTML5 lang attribute

[This isn't my strongest area, so I'm just citing documentation here, but it seems you've overlooked something.]The HTML5 spec requires that the lang value be a valid BCP 47 tag. In that document, the...

View Article

language+region value of the HTML5 lang attribute

I'm working on a website which will offer localized content following the language+region approach as described on this W3.org page (e.g. fr-CA for Canadian French content, and fr-FR for "French...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images