Skip to main content

Questions tagged [lang-attribute]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
2 answers

How do I do a basic multilingual site with worpress and use `/xx/` as the language separator?

I'm new to WordPress. I need to build a 3-page site in various languages. If it was not multilingual I'd use slugs pages (not posts) and publish like these for example: ...
Xavi Montero's user avatar
2 votes
1 answer

What proportion of a page should minimally be in a given language to warrant the use of lang and hreflang tags?

I am building an angular social media website that is intended to be used internationally. People will be able to post multiple translations of the same page if they choose to. Next to this people who ...
Maurice's user avatar
  • 397
2 votes
1 answer

How should the HTML lang attribute be formatted in terms of case and delimiter?

Consider these 4 codes: lang="fa-ir" lang="fa-IR" lang="fa_ir" lang="fa_IR" Which one is correct? I can't seem to find documentation for it.
Shahriar's user avatar
  • 196
2 votes
2 answers

Should I use the lang attribute when writing words in French?

My website is mostly in English but my articles regularly contain words and phrases in French. Here is an example: Should I use the lang attribute for each of ...
user84296's user avatar
1 vote
2 answers

Where do I get a list of attribute 'lang' values - what standard covers this, for SEO optimization?

I'm working on a website that I need to optimize for multiple-languages. I want to provide support in 3-4 languages, 'en', 'de', 'cn' - the trouble is, I'm not sure what Saudi-Arabia and the gulf ...
Ravi Swamy's user avatar
11 votes
3 answers

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 page (e.g. fr-CA for Canadian French content, and fr-FR for "French ...
Max's user avatar
  • 967
2 votes
1 answer

HTML (4.01) "lang" attribute: Best practice / Browser compat for where to place: HTML or BODY?

I'm just creating a new site from scratch. Each page in that site will have a default language and I'd like the markup to reflect it because there will be multiple languages. I'm using HTML 4.01 and ...
hakre's user avatar
  • 460