Selectors Overview
https://www.w3.org/TR/2026/WD-selectors-4-20260122/#overview
| E:lang(zh, "*-hant") | an element of type E tagged as being either in Chinese (any dialect or writing system) or otherwise written with traditional Chinese characters | § 7.2 The Language Pseudo-class: :lang() | 2/4 |
This example uses the ranges zh and *-hant. Tagging Chinese languages is more complex than most other languages. The purpose of this illustration is to show the :lang selector as an example. It would probably be better to use an example that doesn't involve this complexity.
Perhaps use a combination such as en and *-CA instead:
an element of type E tagged with a language tag for English (en) or any language tag with the region Canada (*-CA)
Selectors Overview
https://www.w3.org/TR/2026/WD-selectors-4-20260122/#overview
This example uses the ranges
zhand*-hant. Tagging Chinese languages is more complex than most other languages. The purpose of this illustration is to show the:langselector as an example. It would probably be better to use an example that doesn't involve this complexity.Perhaps use a combination such as
enand*-CAinstead: