xmlns Attribute


 

Where to use the xmlns Attribute

xmlns is a Common Attribute from the Core Attribute Collection and is of Type URI - #FIXED 'http://www.w3.org/1999/xhtml'.

It may be used on any element in the Element Index. Despite being #FIXED rather than #REQUIRED in the DTD, the xmlns attribute is compulsory on the html element in order for a document to pass W3C Validation.


Description

If present within an XHTML 1.1 document, the xmlns attribute must be set to the XHTML namespace: "http://www.w3.org/1999/xhtml". It is mandatory on the html element.


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 16 May 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > XHTML 1.1 Indexes > Attribute Index (XHTML 1.1) > xmlns Attribute (XHTML 1.1)