HTML Self Closing Tags

2
72

HTML Self Closing Tags

Hello Friends,

In this article we are going to learn about html self closing tags.

Definition – What does Self-Closing Tag mean?

A self-closing tag is an element of HTML code that has evolved in the language. Typically, the self-closing tag makes use of a “/” character in order to effectively close out a beginning tag enclosed in sideways carets.

As we all know there are many html tags and also many html self closing tags but we will take a look on very few which are used most.

Let’s start the html self closing tags.

<br> which is used to break the line and when we use this <br> this tag break the line and also if we use 2 or more time it add blank space.

<hr> tag which is used to break the page with line as you have seen in the video and <hr> tag is also used while making the menu.

<img> tag is used to insert the image and <img> tag is also a self closing tag.

There are many other HTML Self Closing Tags Click here to see all

Below is the coding for reference

<!DOCTYPE html>
<html>
<head>
<title>My name is manjit </title>
</head>
<body>

<a href=”register.html”>Register</a>

<img href=”PASTE IMAGE URL” width=”150″ height=”100″>

<ul>
<a href=”file:///D:/website/web%20designing%20course/qqqq.html”><li>Apple 1</li></a>
<ul>
<li>jit 1</li><br>
<li>jit 2</li><hr>
</ul>
<li>Apple 2</li>
<li>Apple 3</li>
</ul>

</body>
</html>

You also be interested in

My First Website

What is Hosting

Dynamic Pro Wishing Script Portal

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here