Differentiate between an empty tag and a non-empty tag.
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> |