Differentiate between container and empty elements. | Question and Answer !



Question:-

Differentiate between container and empty elements.

Answer:-

In HTML, the tags that include both ON tags and OFF tags are called Container Elements. A tag is opened using opening angle brackets < > and ends with closing brackets < / > E.g., HTMl is the opening tag and /HTML is the closing tag.

Empty elements only contain ON tags, they do not have OFF tags. These elements do not enclose any data. Instead they do something on their own E.g., BR tag breaks the line and display the text from the next line.

NOTE - All Capital letter work please include this tag <> staring and ending 

No comments