HTML Element

What is an HTML Element?

An HTML element is defined by a start tag, some content, and an end tag:

<body><h1>My First Heading</h1>
<p>My first paragraph.</p></body>
</html>Explanation Of Example:-

It has a start tag <html> and an end tag </html>.

Then, inside the <html> element there is a <body> element:

The <html> element is the root element and it defines the whole HTML document.

<body>
<h1>my first heading</h1>
<p>my first paragraph</p>
</body>
Note:-  Never skip the End Tag.