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, where the component name is gone before by a forward slice as appeared underneath with few labels −
So here <p>....</p> is a HTML component, <h1>...</h1> is another HTML component. There are some HTML components which don't should be shut, for example, <img.../>, <hr/> and <br/> components. These are known as void components.
HTML archives comprises of 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 report.
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 beginning tag of a passage and </p> is shutting tag of a similar section yet <p>This is paragraph</p> is a passage component.
Settled HTML Elements
It is especially permitted to keep one HTML component inside another HTML component −
Illustration
Start Tag | Content | End Tag |
---|---|---|
<p> | This is paragraph content. | </p> |
<h1> | This is heading content. | </h1> |
<div> | This is division content. | </div> |
<br /> |
HTML archives comprises of 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 report.
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 beginning tag of a passage and </p> is shutting tag of a similar section yet <p>This is paragraph</p> is a passage component.
Settled HTML Elements
It is especially permitted to keep one HTML component inside another HTML component −
Illustration
<!DOCTYPE html> <html> <head> <title>Nested Elements Example</title> </head> <body> <h1>This is <i>italic</i> heading</h1> <p>This is <u>underlined</u> paragraph</p> </body> </html>
0 comments:
Post a Comment