HTML

Category:HTML Tags

HTML

The HTML element is the top-level element of an HTML document. This HTML tag <html> is the container for all other HTML elements (except for the <!DOCTYPE> tag).

Examples

Using the <html> tag to write a simple HTML document.

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <h1>HTML Tag</h1>
    <p>The HTML element is the top-level element of an HTML document.</p>
  </body>
</html>

Syntax

<html></html>

Tips

  • The <html> tag is placed right under the <!DOCTYPE> tag.
  • The <html> tag requires a starting and end tag.
  • The <html> contains every other tab that makes up the webpage. That’s why the closing tag </html> is all the way at the bottom.

Additional Information

For more information, see http://www.w3schools.com/tags/tag_html.asp

Found a bug in the documentation? Let us know at documentation@code.org