A page with the first few sentences of Theodor Fontane's novel "Effi Briest", in German. The html element has a lang with the value "en" (English) and an xml:lang attribute with the value "de" (German). Correct <html:code>xml:lang</html:code> and incorrect <html:code>lang</html:code> attribute for primary language of content in German Christophe.Strobbe@esat.kuleuven.be en Copyright BenToWeb 2004-2007 2005-09-01 draft Specifying the language of content: the lang attribute

This test case is intended to fail because for the primary natural language of the content is not correctly defined: the language information is contradictory. However, tests could show that some user agents ignore one of the language indications in favour of the other, and end up with the correct value. Only the primary language is tested, not language changes inside the content.


Can you determine the language of the text?

The browser may not be able to find the primary language of the document.

The html element has lang and xml:lang attributes with contradictory values. Only the primary language is tested here, not language changes inside the content.