HTML | <html> Tag
The <html> tag in HTML is used to define the root of HTML and XHTML documents. The <html> tag tells the browser that it is an HTML document. It is the second outer container for everything that appears in an HTML document followed by the <!DOCTYPE> tag. The <html> tag requires a starting and end tag.
Syntax:
<html> HTML Contents... </html>
Attribute Value: The <html> tag contains single attribute xmlns whose attribute value is. It is used to define the namespace attributes.
Below examples illustrate the <html> element in HTML:
Example 1:
Output:
Example 2: Using the xmlns attribute inside the <html> tag.
Output:
Supported Browsers: The browser supported by <html>.