HTML ELEMENTS
An HTML element is defined by a starting tag. If the element contains other content, it ends with a closing tag, where the element name is preceded by a forward slash as shown below with few tags:
Rotate Your Phone To see Table:
|
Start Tag |
Content |
End Tag |
|
<P> |
This is Paragraph Tag |
</p> |
|
<h1> |
This
is heading content |
</h1> |
So here <p>....</p> is an HTML element, <h1>...</h1> is another HTML element. There are some HTML elements which don't need to be closed, such as <img.../>, <hr /> and <br /> elements. These are known as void elements
An HTML element is defined by a starting tag. If the element contains other content, it ends with a closing tag.
For example, <p> is starting tag of a paragraph and </p> is closing tag of the same paragraph but <p>This is
paragraph</p> is a paragraph element.


0 Comments
Please do not enter any spam links in the comment box