Easy Tutorial
❮ Att Ol Reversed Att Select Size ❯

HTML <html> xmlns Attribute

HTML <html> Tag

Example

A simple XHTML document with the minimum required tags:


Browser Support

All major browsers support the xmlns attribute.


Definition and Usage

Note: In XHTML, the xmlns attribute is required. In HTML, the xmlns attribute is invalid.

The xmlns attribute specifies the XML namespace of the document.

However, if xmlns is not used in an XHTML document, the HTML validator at http://w3.org can still correctly identify the document. This is because the namespace "xmlns=http://www.w3.org/1999/xhtml" is default and is automatically added to the <html> tag.


Syntax

Attribute Values

Value Description
http://www.w3.org/1999/xhtml The namespace to use (for XHTML documents).

❮ Att Ol Reversed Att Select Size ❯