Loading...
HTML <html> Tag

HTML <html> Tag

In this tutorial, we will learn about html tag in HTML with the help of examples.


<html> Tag

Html tag <html> is the container for all the other HTML tags except <!DOCTYPE> tag.

Note : <!doctype> tag is used before the opening <html> tag.

Syntax

<html>........</html>

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Html Tag</title>
  </head>
  <body>
    <p>This is paragraph.</p>
  </body>
</html>

Output

This is paragraph.


Specific Attribute

Attribute Value Description
mainfest URL It is for offline browsing i.e. the address of the document's cache mainfest
xmlns http://www.w3.org/1999/xhtml It specifies the XML namespace attribute

Global Attribute

Html Tag support all the global attributes of HTML.


Event Attribute

Html Tag support all the event attributes of HTML.


Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of html tag in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML <i> Tag.

- Related Topics