HTML Elements 📌


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


One Element on other Elements

HTML elements can be nested inside of each other.
It means that you can add an HTML element inside another HTML element. as we all know HTML itself is an element. & also we know we need to add body & body so on.
if you remember our previous post HTML Basic then you can recognize head & body also a HTML element.

This is a very important point to understand.


                    
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
    <p>This is a paragraph.</p>
    <h1>This is a heading.</h1>
</body>
</html>
                

Example Explained

  1. We start with html tag Which is an element itself
  2. After that, we add head & body
    ***So in this case head and body are Nested with HTML tag***