Questions tagged [lang]

Any HTML element may have a lang attribute with a value from the IETF's "BCP 47" list of language codes. This tag is for questions about the attribute's usage; problems with specific browsers should add the relevant tag as well.

Any HTML element may have a lang attribute with a value from the IETF's BCP 47 list of language codes. This tag is for questions about the attribute's usage; problems with specific browsers should add the relevant tag as well.

394 questions
118
votes
6 answers

What is the difference between and ?

What is the difference between and ? What other values can follow the dash? According to w3.org "Any two-letter subcode is understood to be a [ISO3166] country code." so does that mean any value listed under the…
Celeritas
  • 14,489
  • 36
  • 113
  • 194
59
votes
7 answers

CSS: text-transform not working properly for Turkish characters

The implementations of the major browsers seem to have problems with text-transform: uppercase with Turkish characters. As far as I know (I'm not Turkish.) there are four different i characters: ı i I İ where the last two are the uppercase…
Malax
  • 9,436
  • 9
  • 48
  • 64
55
votes
3 answers

What attribute value should I use for a mixed language page?

I usually use this: . However, I am working on a website that will use two languages and mix them up sometimes in the same sentence or heading. How would the above code look in this case? Can I use ?
Francisc
  • 77,430
  • 63
  • 180
  • 276
47
votes
5 answers

Define multiple languages in html root element's lang attribute?

I want to determine more than one language for a document, because it's available in more than one language. If I use: this is not W3C valid and the validator says I should define it in the…
swd_fs
  • 471
  • 1
  • 4
  • 3
23
votes
2 answers

Angular Universal html lang tag

In Angular Universal I have an index.html file. At the top it has I would like to change this based on the page I am on. maldonadoattorney.com/es/jailreleases would be maldonadoattorney.com/jailreleases would…
flobacca
  • 936
  • 2
  • 17
  • 42
23
votes
3 answers

What's the difference between the lang attribute and the tag?

I was wondering what's the significance of using the "lang" attribute and how that differs from using the meta "Content-Language" tag? Consider the following code:
mariachimike
  • 1,303
  • 2
  • 17
  • 22
20
votes
4 answers

Gatsby set lang attribute to html

How would you do it? modify the public folder doesn't seem to work... make your own build and host it how it is? maybe there is a function that I still don't know. Any help is appreciated.
Vincenzo
  • 375
  • 3
  • 15
20
votes
3 answers

How do I make text-transform:uppercase work properly with Greek?

The issue I came across has to do with the capitalization of Greek characters by the text-transform: uppercase property. In Greek, vowels can have acute accents, both small and caps, for instance one in Greek is ένα. In the beginning of a sentence…
Protonotarios
  • 553
  • 4
  • 15
18
votes
2 answers

Passing pointer through channel in Go Lang

It is possible to pass pointer over channel in go lang? I need to pass struct, do changes in it and have theese changes in the same function from where struct was passed? I tried chan <- &data and I got # command-line-arguments .\o.go:130: cannot…
Eddwhis
  • 1,124
  • 2
  • 16
  • 33
14
votes
5 answers

Set the default language in a Flutter application

I am trying to support multiple languages in my apps. I want to support two languages in my apps: English (en) and Bahasa (id). But, I want my apps to use Bahasa as the default language. I have tried to do this using the plugin easy_localization.…
fajar ainul
  • 480
  • 2
  • 8
  • 27
14
votes
1 answer

Can I configure the dictionary language used by the spellcheck attribute on my form elements?

I need to add the spellcheck attribute to a few