HTML esoterica – en-GB vs. en_GB

(htmhell.dev)

39 points | by edent 2 days ago

6 comments

  • bentley 7 minutes ago
    For English content I just use <html lang=en>: quiets the validator, makes no difference in rendering, so simple I don’t even think about it.
  • SyzygyRhythm 19 minutes ago
    The page doesn't seem to quite spell out the answer, which is that lang and locale have nothing to do with each other. It's basically coincidence that they look even similar. The locale came from basically an ad-hoc system from X/Open in the late 80s, while lang comes from RFC 5646 in 2009. The two become more obviously different if you need to specify anything complicated, like sr_RS.UTF-8@latin or zh-cmn-Hans-CN.
  • hibbelig 32 minutes ago
    I don’t unterstand this. In order to write correct text i have to know some conventions, such as number formatting. So just language and locale are kind of hard to separate. Why dies the author say that the locale doesn’t matter for strings in OGP metadata?
  • sph 1 hour ago
    I must say - great domain name.
  • dmitrygr 1 hour ago
    > mark, a yen, a buck, or a pound

    Nice reference. :)