HTML 4.0 Logo Reader Icon OEB 1.0 Logo xml:lang

This attribute establishes the language used in the text it describes. This value prevents improper hyphenation for non-English content.

The lang attribute performs much the same function as xml:lang, but if xml:lang is specified, the xml:lang value over-rides the setting of lang.

Note that because this is not an OEB-supported attribute, in documents of media type text\x-oeb1-document you must use the xml:lang attribute instead. In documents of media type text\html you can use either lang or xml: lang to specify the book’s language.

A publication as a whole can have its language specified by the <dc:Language> tag in the package-file, but the lang and xml:lang attributes in the component documents can override this package file value.

For a list of OEB-compliant language codes, see Metadata.

Syntax

xml:lang="language"

Associated Tags

all tags

© 2000 Microsoft Corporation. All rights reserved. Terms of use.