Computer Applications
Differentiate between container and empty elements used in HTML.
HTML Intro
3 Likes
Answer
| Container elements | Empty elements |
|---|---|
| Container elements require both, an opening and a closing tag. | Empty elements require only an opening tag and not a closing tag. |
| Container elements affect the text appearing between their opening and a closing tag. | Empty elements just carry out the job assigned to them. |
For example, <TITLE>…</TITLE>, <FONT>…</FONT> etc. | For example, <BR>, <HR> etc. |
Answered By
1 Like
Related Questions
What is the method of using comment line in HTML code ?
What is the use of
<BODY>tag in HTML code ? Write any two attributes used with this tag.What is the use of
<font>tag in HTML code ? Write any two options used with this tag.Which HTML tag is used to insert an image in a page ? Write an option used with this tag.