This website uses cookies

We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you've provided to them or that they've collected from your use of their services. Please read more at our privacy policy page.

HTML <html> Tag

The <html> tag is a root element of an HTML document. It contains all HTML elements, which inform the browser that this is an HTML document. Before the <html> tag we must put only the <!DOCTYPE> declaration, which inform about HTML version used in the document.

The child elements of the <html> tag are:

  • The <head> tag contains technical information for browsers enclosed in <title>, <script>, <link> and other tags).
  • The <body> tag defines the content of HTML document (text, images, links, etc.).

We recommend using the <html> tag with the lang attribute, which defines the language of the document. This simplifies the indexing of a web page by search engines, helps browsers to correctly display national characters and devices that read from the screen, to correctly determine the pronunciation.


The <html> tag comes in pairs, the closing tag (</html>) is required.


<!DOCTYPE html>
      <title>Title of the document</title>
      The content of the page



Attribute Value Description
manifest URL Specifies the URL of the resource where the manifest is located with the list of resources that should be cached in the user's browser (for offline viewing).
xmlns Specifies the XML namespace for the document (if the XHTML document correspondence is required).
Required in XHTML.
In HTML 5 it isn’t required.

The <html> tagsupports the Global Attributes and the Event Attributes.

Browser support