International attributes

The following attributes are used on the same elements as the core attributes, with the exception of Bdo and Break Line, but in addition are used in the Html, Head, Title, Meta, Style and Map elements.

Language

The Language (Lang) attribute describes the human language used for the textual content of the element. It is included for backward compatibility with HTML:

<p lang="EN">This is an English paragraph.</p>

The XML equivalent attribute, XML Lang, should be used instead:

<p xml:lang="EN">This is an English paragraph.</p>

Direction

The Direction (Dir) attribute describes the direction of writing that is conventional for the human language concerned. It takes a value of 'ltr' (left to right) or 'rtl' (right to left): ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.