An HTML element generally consists of a start tag and end tag, with the content inserted in between −
All HTML tags are open and close, And content is given in between. The given content is done according to the tag.
<tagname>Your Content goes here...</tagname>
Following are the major HTML elements
<p>This is paragraph content.</p> <h1>This is heading content.</h1> <div>This is division content.</div>
HTML documents consist of nested HTML elements, for example.
<!DOCTYPE html> <html> <head> <title>Example for Nested HTML Elements</title> </head> <body> <h1>This is my Heading</h1> <p>This is my paragraph.</p> </body> </html>
This is my paragraph.