xml:lang Attribute


 

Where to use the xml:lang Attribute

xml:lang is a Common Attribute from the I18N Attribute Collection and is of Type LanguageCode.

It may be used on most elements in the Element Index - all except: base, br, param, script.


Description

The xml:lang is a common Internationalisation attribute and can be used on most elements to specify the LanguageCode to apply to the element and its children.

Although technically not mandatory, you should always include an xml:lang attribute on a document's html element, specifying the language in which the document is (primarily) written.

See also the dir attribute.


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 16 May 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > XHTML 1.1 Indexes > Attribute Index (XHTML 1.1) > xml:lang Attribute (XHTML 1.1)