codefox
12-26-2002, 04:44 AM
What exactly does the "lang" attribute of HTML elements do? Is it just informational, or has some other purpose?
The following two sentences display the same content. What would one want to give the "lang" attribute for a particular span?
<SPAN id="msg1" class="info" lang="fr">Variable déclarée deux fois</SPAN>
<SPAN id="msg1" class="info" lang="en">Variable déclarée deux fois</SPAN>
Well, i found this example while going through the HTML 4.01 specification.
The following two sentences display the same content. What would one want to give the "lang" attribute for a particular span?
<SPAN id="msg1" class="info" lang="fr">Variable déclarée deux fois</SPAN>
<SPAN id="msg1" class="info" lang="en">Variable déclarée deux fois</SPAN>
Well, i found this example while going through the HTML 4.01 specification.