differentiate between container and empty elements in HTML. Give any two examples of HTML tags from each category
Answers
Answered by
14
Answer:
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.
thanks
Answered by
0
Answer:
CONTAINER ELEMENT:= 1} Container element have starting as well as closing.2} Example:= {HTML}____{/HTML} , {HEAD}___{/HEAD}.
EMPTY ELEMENT:=1}Empty element have only starting tags they do not have ending tags.2} Example:={P},{BR}..
Explanation:
THIS IS YOUR ANSWER..
Similar questions
Math,
4 months ago
Biology,
4 months ago
Computer Science,
4 months ago
Computer Science,
9 months ago
Physics,
9 months ago
Social Sciences,
1 year ago
Chemistry,
1 year ago