PDA

View Full Version : XHTML lang & xml:lang question


AlexV
11-20-2009, 08:22 PM
Why do I so ofter see something like:
<html lang="fr" xml:lang="fr" ...>
isn't declaring BOTH is redundant?

Can't see an official W3C doc state on this...

Thanks!

Alex Vincent
11-20-2009, 10:33 PM
It is redundant, but that's all right. :)

The HTML 4 spec came before XHTML 1.0 and, I believe, before XML itself, was popular. Certainly the two specs were developed independently, which is why this happens.

I'm not sure if the HTML 5 Working Group has addressed this.