6. What are void elements?
Void elements are HTML elements that cannot have child content and do not use closing tags. Examples include <img>, <input>, <br>, <hr>, <meta>, and <link>.
Key Takeaways
- Void elements do not contain child nodes.
- Do not add unnecessary closing tags to void elements.
Knowledge Check
Which is a void element?