Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Missing xmlns attribute for element html.

Quote Reply
Missing xmlns attribute for element html.
When I ran the pages in W3C validator, I am getting the error:

--------------------------
Line 2, Column 1: Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml

Many Document Types based on XML need a mandatory xmlns="" on the root element. For example, the root element for XHTML will look like:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
--------------------------

So I can goahead add this
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

INSTEAD of default <html>

thanks.
(sorry i mistakenly posted this in 'Gossammer Forums'.)

Last edited by:

hegu: May 17, 2009, 6:24 AM
Quote Reply
Re: [hegu] Missing xmlns attribute for element html. In reply to
Yup, that will make that validation error go away. I don't quite get that error because the xmlns attribute is an implied attribute, so it shouldn't be required...

Adrian