The HTML part is portrayed by a starting tag. If the segment contains other substances, it closes with an end tag.
<p>It is a section content.</p>
<h1>it is a heading content.</h1>
<div>it is a division content.</div>
So here <p>….</p> is a HTML component, <h1>…</h1> is another HTML component. There are some HTML components which shouldn’t be shut, for example, <img…/>, <hr/> and <br/> components. These are known as void components.
HTML reports comprise a tree of these components and they determine how HTML records ought to be manufactured, and what sort of substance ought to be put in what part of a HTML archive.
HTML Tag versus Component
A HTML component is characterized by a beginning tag. On the off chance that the component contains other substance, it closes with an end tag.
For instance, <p> is the beginning tag of a passage and </p> is the end tag of a similar section yet <p>It is a paragraph</p> is a passage component.
Settled HTML Elements
It is especially permitted to keep one HTML component inside another HTML component Model:
<title>Nested Elements Example</title>
<h1>It is an<i>italic</i>heading</h1>
<p>It is an<u>underlined</u>paragraph</p>
It is an italic heading
It is an underlined paragraph