H58.1 Valid Language Tags Test
en: English - Latin script presumed by "Suppress-Script" property
en-AU: English - Australia
zh: Chinese - no script presumed
zh-Hant: Chinese - "Traditional Han" script (as used in Taiwan, Hong Kong)
zh-Hans: Chinese - "Simplified Han" script (as used in mainland China, Singapore)
zh-Hant-HK: Chinese - "Traditional Han" script - Hong Kong
zh-Latn-pinyin: Chinese - Latin script, Pinyin romanisation variant - no country specified
en-AU-x-nsw: English - Australia - private use section "x-nsw"
en-AU-u-kf-upper: English - Australia - registered extension "u" (Unicode collation) with data
x-test: Private use tag "x-test"
tlh: Klingon (three-character language subtag)
i-klingon: Klingon (specified as irregular grandfathered tag)
Success Criterion 3.1.2 (Language of Parts) states that the changes in language should be marked
using language attributes to qualify for AA conformance.
This example tests various examples of language tags that are known to be well-formed. To be considered
valid, the language subtags used have to be listed in the IANA
Language Subtag Registry. HTML_CodeSniffer
does not have the ability to check subtags against this list, mainly due to its large size and frequency of update.
Expected Not To Fail
- [Standard].Principle3.Guideline3_1.3_1_1.H58.1.*: "The language specified in the <lang | xml:lang> attribute of this element does not appear to be well-formed."
(The "*" represents either "Lang" or "XmlLang" depending on which attribute applies.)
Relevant Success Criteria
Relevant Techniques