HTML5 html tag, Definition of <html> tag in html5


 

HTML5 html tag, Definition of <html> tag in html5

In this tutorial we will discuss about <html> tag in html5 document

In this tutorial we will discuss about <html> tag in html5 document

HTML5 html tag, Definition of <html> tag in html5

In this tutorial we will discuss about <html> tag in html5 document. This is the ROOT element of the html document. HTML tag contains all other html tag  within it except <DOCTYPE> tag ,<DOCTYPE> tag is located before the html opening tag . <html></html> tag have only two main tags are one <head> and one <body> tag and all other tag of html is nested in these two tags. The <html> tag indicates to the browser that  it is a html document.

Declaration Syntax:

The syntax of <html> tag is as:

<html> All other tags here </html>

This tag have a specific attribute "manifest" as follows.

manifest="value"    The value specify the URL which describes the document's cache information.

Example:html_tag.html.

<!DOCTYPE html>
<html>
  <head>
      <title>Example of html Tag</title>
  </head>
   <body>
          This is body of html document.
  </body> 
</html>

Output:

Download This Example:

Difference between HTML5 and HTML4.

In html5 manifest is the new attribute.

Ads