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.


The html tag supports the global attribute.

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


<!DOCTYPE html> <html lang="en" xmlns=""> <head> <meta charset="utf-8" /> <title></title> </head> <body> </body> </html>

Related HTML tags:

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