TutorialLab
Paired Tags, Unpaired Tags and HTML Comments.

Paired Tags, Unpaired Tags and HTML Comments

Paired Tags, Unpaired Tags and HTML Comments:

Today we will discuss Paired Tags, Unpaired Tags and HTML Comments.

Paired Tags:

A tag is said to be a paired tag if the text is placed between a tag and its companion tag. In paired tags, the first tag is referred to as Opening Tag and the second tag is referred to as Closing Tag.

<p>this is example of paired tag</p>

Note: Here <p> is called opening tag. and </p> is called closing tag.

Unpaired Tags:

An unpaired tag does not have a companion tag. Unpaired tags are also known as Singular or Stand-Alone Tags.

<br> <img src='test.png' >

etc. These tags does not require any companion tag.

HTML Comments:

Comments are not displayed in the browsers. You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.

<!-- browser will ignore code with comments structure -->

Previous Lecture Next Lecture

Aizaz Ali

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.