CodesJava

Easy learning with example program codes

Html tag in HTML

HTML <html> Tag

The <html> tag is also called as 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>

Output:

Explanation:

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

Tag Specific Attributes:

AttributeUses
xmlnsUsed 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:
error
Posted in HTML   









Copyright © 2019 CodesJava DMCA.com Protection Status