Questions tagged [lang-attribute]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
34 views

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 ...
3 votes
2 answers
35 views

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: https://example.com/ ...
2 votes
1 answer
543 views

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.
2 votes
1 answer
1k views

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 ...
11 votes
3 answers
4k views

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 ...
1 vote
2 answers
415 views

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 ...
2 votes
2 answers
279 views

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: https://frenchtogether.com/quand-meme/ Should I use the lang attribute for each of ...