whatis the difference between container tag and empty tag
Answers
Answer:
container tag means tag which have closing tag.
eg. <p> </p>
empty tag means tag does not have closing tag.
eg. <img>, <input>
please follow me
mark me as brainliest
Required answer:-
We already know that to view a website or a web page, a web browser is used. HTML is a markup or tag-based language. It makes use of various tags to format the content to be viewed on a web browser. There are two types of tags in HTML:
- Container tags
- Empty tags
Let's know what is the difference between these tags!
Container tags: These tags require an opening as well as a closing tag. A tag can be closed by putting a forward slash (/) in front of the tag name. For example, <H1> is a container tag.
These tags are always used in pairs, as used in the following example:
<H1> An example </H1>
Here, <H1> is an opening tag and </H1> is a closing tag. Except a few tags, most of the tags have their corresponding closing tags.
Empty tags: These tags do not require a closing tag like container tags. They can work as a solo in a any program. For example, <BR> and <HR> don't enclose any data, they operate on their own.
*Therefore, we can conclude the answer by saying, tags that requires a closing tag are known as container tags whereas, tags which doesn't require any closing tag are known as empty tags.