The <html> HTML element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.
- What are the elements of HTML document?
- What does root mean in HTML?
- How HTML element is identified in HTML document?
- What is root node in HTML?
What are the elements of HTML document?
An HTML 4 document is composed of three parts: a line containing HTML version information, a declarative header section (delimited by the HEAD element), a body, which contains the document's actual content.
What does root mean in HTML?
In HTML, :root represents the <html> element and is identical to the selector html , except that its specificity is higher.
How HTML element is identified in HTML document?
Example Explained
The <html> element is the root element and it defines the whole HTML document. It has a start tag <html> and an end tag </html> . The <body> element defines the document's body. It has a start tag <body> and an end tag </body> .
What is root node in HTML?
In a node tree, the top node is called the root (or root node) Every node has exactly one parent, except the root (which has no parent)