HTML html Tag

  • HTML <html> tag represent a root (top-level) tag of an HTML document. The <html> tag is a container tag that include all other HTML elements.

Example

<!DOCTYPE html>
<html>
<head>
  <title>HTML html tag</title>
</head>
<body>
  <p>article paragraph</p>
</body>
</html>

Run it...   »

<html> Tag Attributes

HTML <html> tag support following specific attributes.

Attributes Value Description
xmlns namespace Specify the XML Namespace of the document.
Default value is http://www.w3.org/1999/xhtml

Global Attributes

HTML <html> tag support following global attributes.

Attributes Value Description
id unique_name Declared unique id for an element.
class class_name Declared one or more classnames for an element.
style styles CSS inline styles specify an element.
title title Specify extra details of element contain, this will display as a "tooltip" for an elements.

Event Attributes

HTML <html> tag does not support any event attributes.

Browser Compatibility

  • Google Chrome
    Yes
  • Mozilla Firefox
    Yes
  • Microsoft Edge
    Yes
  • Opera
    Yes
  • Safari
    Yes