This is the main structural element in a HTML document.

Html element must be included in a document.

All other elements, except document type definition (DTD), must be placed inside html element.

Main child elements to <html> are <head> and <body> elements.

Syntax:

<html></html>

Attributes:

  • lang (language information), dir (text direction)

Example

Typical HTML based document:

 

›› go to examples ››