[thelist] [xhtml11] lang attribute

Nelson Rodríguez-Peña Alarcón nelson at webstudio.cl
Wed Oct 8 16:27:11 CDT 2003


Decapode Azur wrote:
>>>(in <html> is not appropriate to make one page with several languages
>>>in it)
>>Why not?
> because several languages, but just one attribute possible in this tag
> wrong:
> <html xmlns="http://www.w3.org/1999/xhtml"
> 	xml:lang="en"
> 	xml:lang="fr"
> 	xml:lang="de">

But this is *right*:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<p xml:lang="en">This content is in english.</p>
<p xml:lang="es">Y este contenido está en castellano.</p>

So you certainly can use several languages in a XHTML document.


Nelson Rodríguez-Peña A.
Diseño y Desarrollo Web y Multimedia

More information about the thelist mailing list