Advertisements
Advertisements
Question
Explain with the help of an example the difference between container and empty elements of HTML.
Answer in Brief
Solution
- Container Elements:
- The tags which are required opening and closing is known as container elements or tags.
- For example: <html>, <body>, <title>, <p> etc.
- Empty Elements:
- The tags which are required only opening tag is known as empty elements or tags.
- For example: <br>
shaalaa.com
Container and Empty Elements
Is there an error in this question or solution?