html html tag

In the html <html> tag is used to let know to browser this is an html page and it tag is outermost element in Html page. Also it known as the root element of html page and all other html tag should be inside of <html> tag.

The <html> required attributes is xmlns and standard attributes are dir,lang and xml:lang.

Syntax:

<html> ... </html>

Example Code



<!DOCTYPE HTML>
  <html>
    <head>
    <title> Title of the HTML page ... </title>
  </head>
  <body>
     Body Of the Html Page ....
  </body>
</html>

In the above example is the html page structures and have to used inside of head,title and body tag.





Content