Skip to content

4. HTML tags

Deepak Kumar edited this page Jul 28, 2020 · 1 revision

An HTML tag is a combination of characters enclosed in angle brackets.

For example,

<p></p> is a paragraph tag.

<img src=”image-path”/> is an image tag. Here “src” is an attribute.

There are two types of tags in HTML - Paired and Unpaired Tags.

Some tags need a closing tag because they enclose some content like <p>, <h1> etc. These are called Paired tags.

On the other hand, some tags don't need a closing tag like <img />, <br /> etc. These are called Unpaired tags.