In this section, we will learn what HTML <html> element is and how to use it.
What is <html> Tag in HTML?
HTML <html> element is considered as a container element and is used to group the entire elements that are part of an HTML document!
The <html> element is basically known as the root of an HTML document. The process of creating an HTML document starts with this <html> element.
Basically, whenever we want to create an HTML document, we first start with the <html> element and then within its body we put all other elements that are part of that HTML document (like the main body <body> and headers <h1>- <h6> and <head> etc.).
HTML <html> Tag Syntax:
<html> </html>
HTML <html> Tag Values
The values we set for <html> element are all the other elements that we used to create the target HTML document.
Example: using <html> tag in HTML
See the Pen using <html> tag in HTML by Omid Dehghan (@odehghan) on CodePen.