Identify the Primary Language of the Document:
Identify Changes of Language Within a Document:
<p>While in Spain, my friend tried to speak Spanish, but she wasn't very good. Everyone kept saying "<span lang="es">No comprendo nada de lo que dices.</span>"</p>
See HTML Language Code Reference for a complete listing of language codes.