Questions tagged [lang-attribute]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
245 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 ...
1
vote
2answers
220 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 ...
11
votes
3answers
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 ...
2
votes
1answer
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 ...