Get Answers to all your Questions

header-bg qa

Differentiate between an empty tag and a non-empty tag.

Answers (1)

best_answer

The difference between empty tags and non-empty tags in HTML is given as follows-

Feature Empty Tag Non-Empty Tag
Definition A tag without a closing tag A tag with both opening and closing
Closing tag Not required Required
Content Does not enclose any content Encloses content
Example <br>, <img>, <hr>, <input> <p>...</p>, <div>...</div>, <h1>...</h1>
Posted by

Saniya Khatri

View full answer