0
Html basic
Which type of tag is known as empty tag?
1 Réponse
+ 5
In HTML, an empty tag is a tag that does not have a closing tag and does not contain any content.
Examples of Empty Tags:
<br> â Line break
<hr> â Horizontal rule
<img> â Image
<input> â Input field
<meta> â Metadata
<link> â Link to external resources (like CSS)
Definition:
An empty tag is a self-closing tag that doesn't wrap any content and is written with only the opening tag.
Note:
In HTML5, these tags are written without the slash (e.g., <br>, not <br />), but both forms may work in browsers.