

WHAT DOES FOR DO IN LABEL HTML CODE
I interpret that as meaning any valid (according to ISO 3166) 2-letter code is valid as a subtag. RFC 3066 gives the details of the allowed values (emphasis and links added):Īll 2-letter subtags are interpreted as ISO 3166 alpha-2 country codesįrom, or subsequently assigned by the ISO 3166 maintenanceĪgency or governing standardization bodies, denoting the area to which It doesn't help the browser to display the page, but it is useful for search engines, screen readers, and other things that might read and try to interpret the page, besides human beings. I mean does this somehow further help the browser to display the page? However, that language/country combination won't do much since English isn't commonly spoken in Spain. It wouldn't mean much, but is valid according to the specification, as I understand it. If you really wanted to specify an invalid combination, you could.

essentially means "this page is in the US style of English." In a similar way, would mean "this page is in the United Kingdom style of English."

Yes, however the value may or may not have any real meaning. Two-letter subcode is understood to be a country code." soĭoes that mean any value listed under the alpha-2 code is an accepted What other values can follow the dash? According to w3.org "Any The second specifies a language code, followed by a country code. The first lang tag only specifies a language code.
