HTML <html> xmlns Attribute Last Updated : 11 Jun, 2025 Comments Improve Suggest changes Like Article Like Report The HTML <html> xmlns Attribute is used to specify the XML namespace for a document. This attribute is mainly required in XHTML, not valid in HTML 4.01, and optional in HTML 5. Syntax<html xmlns="http://www.w3.org/1999/xhtml"> Attribute ValuesValueDescriptionhttps://www.geeksforgeeks.org/It defines the namespace to use (for XHTML documents).Example: html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.geekforgeeks.org//xhtml"> <head> <title>Title of the document</title> </head> <body style="text-align: center;"> <h1>GeeksForGeeks</h1> <h2>HTML xmlns Attribute</h2> The content of the document...... </body> </html> Output: Supported Browsers: The browser supported by <HTML> xmlns attribute are listed below: Apple Safari 1.0Google Chrome 1.0Firefox 1.0Opera 1.0Internet Explorer 6.0 Comment More infoAdvertise with us Next Article HTML | <input> name Attribute M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Similar Reads HTML | <html> xmlns Attribute The HTML <html> xmlns Attribute is used to specify the XML namespace for a document. This attribute is mainly required in XHTML, not valid in HTML 4.01, and optional in HTML 5. Syntax<html xmlns="http://www.w3.org/1999/xhtml"> Attribute ValuesValueDescriptionhttps://www.geeksforgeeks.org 1 min read HTML | <input> name Attribute The HTML <input> name Attribute is used to specify a name for an <input> element. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript. Syntax: <input name="name"> Attribute Values: It contains a single value name which describ 1 min read HTML | <map> name Attribute The HTML <map> name Attribute is used to specify the name of the mapping image, This attribute is associated with the <img> usemap attribute and created the relationship between the image and the map. Syntax: <map name="mapname"> Attribute Values: name: it specify the name of the i 1 min read HTML <a> name Attribute The HTML anchor name attribute is used to specify the name for an <a> element. It is used to reference the form data after submitting the form or to reference the element in JavaScript. Note: The <a> name attribute is not supported by HTML5. Syntax<a name="name"> Attribute Values:A 1 min read HTML | <iframe> name Attribute The HTML iframe name Attribute is used to specify a reference for an <Iframe> Element. The name attribute is also used as a reference to the elements in a Javascript. Syntax: <iframe name="name">Attribute Values: name: It specify the name for the Iframe element.UsageThe name attribute as 1 min read HTML <a> href Attribute The HTML <a> href attribute is used to specify the URL of the page that the link points to. When the href attribute is not present in the <a> element, it will not function as a hyperlink. This attribute is essential for creating links to any address and is used in conjunction with the 1 min read HTML | <meta> name Attribute The HTML <meta> name Attribute is used to specify the name for the metadata. This attribute is used to define the name for the information/value of the content attribute. Note: If the http-equiv attribute is set, the name attribute should not be set. Syntax: <meta name="value"> Examples: 1 min read HTML <meta> content Attribute HTML <meta> content Attribute provides the value associated with either the http-equiv or name attribute, offering metadata information such as character encoding, viewport settings, or other document-related data. Syntax: <meta content="text">Attribute Values: It contains single-value t 1 min read HTML <abbr> title Attribute The HTML <abbr> title attribute is used to specify the extra information about an element. The <abbr> element represents an abbreviation or acronym. When the mouse moves over the element then it shows the information. Syntax<abbr title = "text">Attribute ValueIt contains single-val 1 min read HTML | <object> name Attribute The HTML <object> name Attribute is used to specify the name of the embedded file. This attribute is also used as a reference for an object element in the Javascript. Syntax: <object name="name"> Attribute Values: name: It specify the name of the embedded file. Example: html <!DOCTYPE 1 min read Like