HTML - Elements

HTML Elements

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>

Nested HTML Elements

HTML documents consist of nested HTML elements, for example.


<!DOCTYPE html>
    <title>Example for Nested HTML Elements</title>
<h1>This is my Heading</h1>
<p>This is my paragraph.</p>


Example for Nested HTML Elements

This is my Heading

This is my paragraph.