Language: Test of natural language markup through CSS
This page tests your XML user agent (such as internet browser) for language markup. The page is written in XHTML 1.1 and applies CSS 2.1.
References
Tests of language dependent markup
Desired results
- English text with this markup.
- German text with this markup.
- Danish text with this markup.
Test set: CSS selector: :lang(foo) {}
HTML 4.01 attribute: lang="foo"
- This text is in English.
- Dieser Text ist auf Deutsch.
- Denne tekst står på dansk .
XHTML 1.0 Strict attributes: xml:lang="foo" lang="foo"
- This text is in English.
- Dieser Text ist auf Deutsch.
- Denne tekst står på dansk.
XHTML 1.1 attribute: xml:lang="foo"
- This text is in English.
- Dieser Text ist auf Deutsch.
- Denne tekst står på dansk.
Test set: CSS selector: *[lang="foo"] {}
HTML 4.01 attribute: lang="foo"
- This text is in English.
- Dieser Text ist auf Deutsch.
- Denne tekst står på dansk .
XHTML 1.0 Strict attributes: xml:lang="foo" lang="foo"
- This text is in English.
- Dieser Text ist auf Deutsch.
- Denne tekst står på dansk.
XHTML 1.1 attribute: xml:lang="foo"
- This text is in English.
- Dieser Text ist auf Deutsch.
- Denne tekst står på dansk.