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.
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:
Difference between HTML5 and HTML4.
In html5 manifest is the new attribute.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.