HTML tag "html" - how to use <html> tag

The HTML <html> tag is used to define that the document loaded is a HTML document. The <html> tag is the root element in a HTML document.

Attributes

The html tag supports the global attribute.

manifest
Defines the URL of the document's manifest used for offline browsing
xmlns
Defines the XML namespace when the specific document needs to conform to XHTML

Examples:

<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title></title> </head> <body> </body> </html>

Related HTML tags:

  • <DOCTYPE > - used to define the version of HTML used