HTML html Tag defines the root of HTML Document. HTML html tag act as a main container for all other HTML Elements in HTML Document. Two main sections of html document are body and head section.
Table of Contents
Syntax of HTML html Tag
The Syntax of HTML html Tag is shown below, It has both starting tag and ending tag.
<html>
</html>
Usage of HTML html Tag
HTML html Tag is used to enclose all other HTML tags inside the web page. HTML html tag defines the main root section of HTML Document.
HTML html Tag has a lang attribute which defines the language of the web page.
HTML html tag is a block level element.
Example of HTML html Tag
Simple example of HTML html Tag is shown below.
<!DOCTYPE html>
<html lang="en">
<head>
<title>HTML html Tag</title>
</head>
<body>
<h1>HTML html Tag</h1>
</body>
</html>
Browser Support for HTML html Tag
HTML html Tag is supported by all major browsers including Safari and Internet Explorer.
Global Attributes Support in HTML html Tag
The HTML html Tag supports all Global Attributes.
Event Attributes Support in HTML html Tag
The HTML html Tag supports all Event Attributes.
HTML html Tag Video
Watch our video on HTML html Tag.
Post a Comment