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.


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

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

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
  • Mozilla Firefox
  • Microsoft Edge
  • Opera
  • Safari