Is 'en-EU' a valid value for HTML 'lang' attribute?

前端 未结 1 990
广开言路
广开言路 2020-12-31 13:02

Markup for different editions of my news site...

  • US Edition:

     ... 
    
    <
1条回答
  •  离开以前
    2020-12-31 13:36

    Why not?

    1. HTML5 (CR) defines that the "value must be a valid BCP 47 language tag, or the empty string".

    2. BCP 47 defines that the "IANA Language Subtag Registry […] contains a comprehensive list of all of the subtags valid in language tags".

    3. IANA Language Subtag Registry contains the subtag EU of type region.

    It’s not up to anyone to formally define if or which linguistic variations are spoken in which regions. Language changes constantly, speakers live and die everywhere.

    0 讨论(0)
提交回复
热议问题