Latest News
Donation Amounts

Hi 😊

We appreciate you and you help us make a difference. We need your help so that we can provide more services, which means we can provide more low-cost online services to the community. The money also helps our Service work tirelessly, even a penny from your end will mean a lot to us. Because of your donation, we were able to do our best for service. We also appreciate that you are a monthly donor. God Bless You!🙏🙏

Read By Categories

Read By Authors

Recent in Self-Help

3/Self-Help/post-list

Facebook

HTML Elements


HTML Elements

HTML Elements

HTML Elements

HTML Elements

An HTML element usually consists of a start tag and end tag, with the content inserted in between

The HTML element is everything from the start tag to the end tag

HTML documents consists of a tree of these elements and they specify how HTML documents should be built, and what kind of content should be placed in what part of an HTML document

Start tag Element content End tag
<h1> My First Heading </h1>
<p> My first paragraph. </p>
<br>    

HTML-Tags Vs Elements.

Technically, an HTML element is the collection of start tag, its attributes, an end tag and everything in between. On the other hand an HTML tag (either opening or closing) is used to mark the start or end of an element, as you can see in the above illustration.

The summary element

Nested HTML Elements

Nested HTML Elements

Nested HTML Elements

HTML elements can be nested (elements can contain elements).

All HTML documents consist of nested HTML elements.

Example

This example contains four HTML elements

<!DOCTYPE html>
<html>
<body>

<h1>My First Heading </h1>
<p>My first paragraph.<p>

</body>
</html>

HTML Document Output

My First Heading

My first paragraph.

  • Blogger Comments
  • Facebook Comments

0 Reviews:

Post a Comment

If you have any doubts, Let me know, Please!

Item Reviewed: HTML Elements Rating: 5 Reviewed By: Suriya