Interview Question

What is an empty tag?

Empty tags have no content between opening and closing tags.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

An empty tag is an HTML element that does not wrap any content. • It does not need a separate closing tag. • It usually inserts or describes one item. • Common examples are `<br>`, `<hr>`, `<img>`, and `<input>`.

💡 Simple Example

<img src="cat.jpg" alt="A sleeping cat">

⚡ Quick Revision

Empty tags have no content between opening and closing tags.