KnowledgeBoat Logo
LoginJOIN NOW

Computer Applications

Differentiate between Container and Empty elements in HTML. Give any two examples of HTML tags from each category.

HTML Intro

7 Likes

Answer

Container elementsEmpty 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

5 Likes


Related Questions