Share on Google+Share on Google+

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

Advertisement
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.

Advertisements

Posted on: September 9, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.