The root element that specifies that the content of the document is HTML. The opening tag immediately follows the DOCTYPE declaration and the closing tag is the last thing in the document. The html element must contain the head and the body elements. The <html> tag is the container for all other HTML elements (except for the <!DOCTYPE> tag).

Required Attributes

  • Must contain the head and the body elements.

Optional Attributes

  • Manifest = Specifies the address of the document's application cache manifest. The value must be a valid URL.
  • International Attributes

Example

<!DOCTYPE html>
 <html lang="en">
 <head>
     <meta charset="utf-8">
     <title>The Title of the page</title>
     <link rel="stylesheet" href="myStyleSheet.css">
     <script src="myJavaScript.js"></script>
 </head>
 <body>
     <!-- All the content should go here -->
 </body>
 </html>

Changes in HTML5

  • HTML5 has added a new attribute: manifest.

Related Tags