Computer Science, asked by meenakushwaha463, 7 months ago

difference between container and empty tag.​

Answers

Answered by poovarasan09
1

Answer:

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. The difference between a container tag and an empty tag is quite simple. A container tag is the one which has to be closed and an empty tag doesn't need to be closed.

Answered by Anonymous
2

Answer:

Explanation:

Container tag consists of opening tag+content+closing tag . While empty tag is tag without content or a closing tag.

Container tags are used to enclose texts, images etc. Like <body> , <div> etc are container tags as we put some content inside them.

But empty tags are used to insert something. Like if we want to insert an image or a line-break or a horizontal-line , we use <img />, <br />, <hr /> tags respectively.

Empty tags can be used inside the container tags. Like you can insert a line-break or an image anywhere in your page but it should be inside some container tag.

Similar questions