< All the HTML Tags >

<html></html>

Video Coming Soon...

  • html

    Tag Type

    block

    Tag Category

    document structure

    Defines the root of an HTML document

    Viewed

    1

    Examples

    1

Definition:

The HTML <html> tag is the root element of an HTML document, encapsulating all other elements on the page.

It serves as the parent tag for both the <head> and <body> sections, defining the structure and content of the entire webpage. The <html> tag can include attributes like lang, which specifies the language of the document.

Understanding the role of the `<html>` tag is fundamental for creating well-formed HTML documents.

Attributes:

manifest, xmlns, Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default html Example:

Using the <html> tag to define an HTML document.
<!DOCTYPE html>
<html>
  <head>
    <title>How do I use the HTML tag?</title>
  </head>
  <body>
    Content
  </body>
</html>

Default html Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…