difference between container tag and empty tag
Answers
Answered by
17
Q) Difference between container tag and empty tag.
Answer :-
Container tags are the one which has to be closed.
Empty tags are tags which doesn't need to be closed.
Example :-
Container tags :-
<html> It is a container tag as it has to be closed,</html>
<head> and </head>
<title> and </title>
Empty tags :-
<br> and <img> these tags do not require closing.
Answered by
0
Question:-
- Difference between Container tag and Empty tag
Answer:-
➡️Container tag:-
- Those tags which have a opening tags and a closing tags is called Container tags.
- Example:-
- <html></html>
- <head></head>
- Remember:- '/' is used to close a tag
_______________
➡️ Empty tag:-
- Those tags which have only opening tags and no closing tags are called Empty Tags
- Example:-
- <li> This tag is a list tag. Used for writing a list
- <br> This tag is a line-breaker tag. Used to leave line
____________
Learn more:-
The sample format to create an HTML web page is as follows:-
<HTML>
<HEAD>
<TITLE> HELLO WORLD</TITLE>
</HEAD>
<BODY>
<P> Hello world!! I am using HTML!!</P>
<BR>
<BR>
</BODY>
</HTML>
From the above sample it is clearly visible which is container tag and which is empty tag
Similar questions