Html tag in HTML

HTML <html> Tag

The <html> tag is also called a root element because it is used as a container for all other HTML elements except the <!Doctype> element. The root of an HTML document is represented by the <html> tag thus informing the browser that this document is an HTML document. The <html> tag is placed after the <!Doctype> declaration and is closed at the very end of the HTML document.

Syntax:

<html>....</html>

Example:

<!DOCTYPE html>
<html>
<head>
<title>Example</title>
</head>
<body>
Hello World!!
</body>
</html>

Explanation:

In the above example, we are using all the basic elements of an HTML document.

Tag Specific Attributes:

Attribute Uses
xmlns Used to define the XML namespace attribute to conform the content to XHTML.

Global Attributes:

The HTML GLobal attributes are supported by the HTML <html> tag.

Supporting Browsers:

Chrome, IE, Firefox, Opera, and Safari.

Please follow and like us:
Content Protection by DMCA.com