A page with the first few sentences of Theodor Fontane's novel "Effi Briest", in German. The html element has no lang and xml:lang attributes, but the body element has a lang attribute with the value for German ("de"). Correct <html:code>lang</html:code> attribute on <html:code>body</html:code> 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 pass because the primary natural language of the content is correctly defined. Tests should show that defining the primary natural language on the body element instead of the html element does not cause problems. It is not strictly required that the language code should be defined on the html element, although that is what would be expected. Only the primary language is tested here, not language changes inside the content.


Can you determine the language of the text?

The browser cannot find the primary language of the document but it may be able to find the primary language of the content.

The html element has no lang or xml:lang attributes but the body has appropriate lang and xml:lang attributes.