Terence Eden opens this year’s HTMHell Advent Calendar with a puzzle: why does the lang attribute use a hyphen, while Open Graph’s og:locale uses an underscore? The lang value is a BCP 47 language tag, and og:locale follows the POSIX locale format. But a language isn’t a locale, which also covers dates, numbers, and currency. As OGP is barely maintained, he suggests replacing og:locale with lang on <meta> elements.
HTML esoterica: en-GB vs en_GB
