HTML html Tag

HTML <html>Tag: In HTML <html>tag specifies the browser that this is an html document. The <html> tag supports the global attributes. The container for all other HTML elements is <html> tag. And the <html> tag is denoted as the root of the HTML page.


Syntax: <html> Text <html>

Browser compatibility

The HTML <html>tag is supported by different types of attributes.

  • Chrome
  • Firefox
  • Opera
  • Safari
  • Internet Explorer


<!DOCTYPE html>



Attributes that are supported by the <html> tag

Attribute Value Description
xmlns Specifies the XML namespace attribute