HTML <html> with xmlns Attribute

HTML <html> with xmlns Attribute

The xmlns attribute specifies the XML namespace attribute.

Note: In HTML5, the xmlns attribute is Optional.

Tips: It is recommended not to use the xmlns attribute.

Example

HTML Online Editor
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <body> <p>My First HTML Page.</p> </body> </html>

Attribute Value

ValueExplanation
http://www.w3.org/1999/xhtmlSpecifies the namespace.

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Meet the Author