Computer Science, asked by vansh2076, 1 year ago

Difference between empty tag and container tag in html

Answers

Answered by batradivjyot25
12
There are two kinds of tags:
 container and empty .The container tag always wraps around text or graphics and comes in a set with an opening and a closing. ...
The tag <br> is one that adds a line break. Empty tags do not have to be wrapped around text and do not require a closing.
Hope it helps you out ☺
Answered by AJAYMAHICH
6
Container tag have opening and closing tags and Empty tag has only one tag that is opening. There is no need to closing tag in empty tag

CONTAINER TAG (Closing is Required)

<html> is the Opening tag 
</html> is the Closing tag

<a href=""> is the opening tag

</a> is the closing tag

EMPTY TAG (No Closing Required)

<img src="">

<br>




Similar questions