Language Tags

HTML: All elements (exceptions: param, base, script) can carry the lang attribute:

<span lang="it">Grazie</span>

<span> is a generic container, phrase-level, with meaning only from its attributes (lang, dir, id and class)

XML: xml:lang attribute, can go on any element but must be declared in DTD for strict validation.

XHTML (HTML expressed in XML syntax): use both lang and xml:lang