![]() |
VOOZH | about |
HTML is a language full of diverse elements, and one such element is the <html> tag. This tag, standing for ‘HyperText Markup Language’, is used to define the root of an HTML or XHTML document.
<!DOCTYPE> declaration<!DOCTYPE> declaration and requires both opening and closing tags.Syntax:
<html> HTML Contents... </html>The following default values are mostly displayed by the current browsers:
html {
display: block;
visibility: visible
}Attribute Value:
The <html> tag includes the xmlns attribute. This attribute defines the namespace for attributes, ensuring proper interpretation and compatibility of XHTML elements.
Note: The <html> tag supports the Global Attributes in HTML.
Example 1: This example illustrates the <html> tag element in HTML.
Example 2: In this example, we will be using the xmlns attribute inside the <html> tag.
| Attribute | 👁 Chrome | 👁 Edge | 👁 Firefox | 👁 Safari | 👁 Opera |
|---|---|---|---|---|---|
| align | Yes | Yes | Yes | Yes | Yes |