Differentiate between container and empty elements.

Q1. Differentiate between container and empty elements with examples?

Ans.  Container tags:  Container tag refers to a tag that contain an opening as well as a closing tag. Examples of container tags are <HTML> </HTML>, <HEAD> <HEAD>.

 

Empty tags:  Empty tags refers to a tag that contains only an opening tag, such as <BR> and <HR>.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: