How to close img tag with HTML?

Spread the love

Sometimes, we want to close img tag with HTML.

In this article, we’ll look at how to close img tag with HTML.

How to close img tag with HTML?

To close img tag with HTML, we add a slash at the end before the closing bracket.

For instance, we write

<img src="example.png" />

to add /> to close the img tag.

Conclusion

To close img tag with HTML, we add a slash at the end before the closing bracket.

Leave a Reply

Your email address will not be published. Required fields are marked *