Differentiate between container and empty elements used in HTML.

5 views

1 Answers

Container elements HTML container elements require a starting as well as an ending tags.

e-g , , .

They affect the text appearing between their starting and ending tags.

Empty elements HTML empty elements require just a starting tag and not an ending tag.

e.g.

,
,


.

They just carry out the job assigned to them.

5 views