What is the difference between Empty tag and Container tag in HTML CBSE CLASS VI 2012

The Eduladder is a community of students, teachers, and programmers just interested to make you pass any exams. So we solve previous year question papers for you.
In eduladder you can Ask,Answer,Listen,Earn and Download Questions and Question papers.
Watch related videos of your favorite subject.
Connect with students from different parts of the world.
Apply or Post Jobs, Courses ,Internships and Volunteering opportunity. For FREE
See Our team
Wondering how we keep quality?
Got unsolved questions? Ask Questions

ce2404-->View question

What is the difference between Empty tag and Container tag in HTML? CBSE CLASS VI-2012

What is the difference between Empty tag and Container tag in HTML? 


Asked On2017-12-26 08:27:34 by:soumya

Taged users:
Osho-meditation-center-banglore-nisargaVinitDEEPAK202

Likes:
Be first to like this question

Dislikes:
Be first to dislike this question
Talk about this  Delete  Like  Dislike
View all qusetions

You might like this video:Transportaion inplants and animals
Watch more here

Watch more videos from this user Here

Learn how to upload a video and start earning here

Answers
A container tag has two ends (an opening and a closing) whereas an empty tag doesn't. The paragraph tag is an example of a container tag: <p>
The image tag is an example of an empty tag. <img src="kvslogo.png" > The text in between is "contained" by the tag.
The majority of tags are "container" tags. They have an opening and a closing tag.
However, a few tags are "self-contained" or "empty" tags in that they have an opening tags but not a closing one.They common ones are:
• <br> = break
• <img> = image
• <meta> = metadata within an HTML document.


Answerd on:2017-12-26 Answerd By:ratika

Likes:
|ratika

Dislikes:
Be first to dislike this answer
Talk about this  Delete  Like  Dislike

You might like this video:Basics of HTML
Watch more here

Watch more videos from this user Here

Learn how to upload a video and start earning here

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.

  • <body>
    • <p>
      • Some text here <br /> This inserts a line break.
    • </p>
    • <p>
      • <img src='' '' />
    • </p>
  • </body>

I hope its clear now.


Answerd on:2019-06-19 Answerd By:avi738

Likes:
Be first to like this answer

Dislikes:
Be first to dislike this answer
Talk about this  Delete  Like  Dislike

You might like this video:East India Company
Watch more here

Watch more videos from this user Here

Learn how to upload a video and start earning here



Lets together make the web is a better place

We made eduladder by keeping the ideology of building a supermarket of all the educational material available under one roof. We are doing it with the help of individual contributors like you, interns and employees. So the resources you are looking for can be easily available and accessible also with the freedom of remix reuse and reshare our content under the terms of creative commons license with attribution required close.

You can also contribute to our vision of "Helping student to pass any exams" with these.
Answer a question: You can answer the questions not yet answered in eduladder.How to answer a question
Career: Work or do your internship with us.Work with us
Create a video: You can teach anything and everything each video should be less than five minutes should cover the idea less than five min.How to upload a video on eduladder