html xmlns Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:html

Description

The xmlns attribute specifies the xml namespace for a document.

The xmlns attribute is required in XHTML, invalid in HTML 4.01, and optional in HTML5.

Attribute Values

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

A simple XHTML document, with the minimum of required tags:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title of the document</title>
</head><!--from   w  w w .j  a v a 2 s. com-->

<body>
The content of the document......
</body>

</html>

Related Tutorials