0
Html basic
Which type of tag is known as empty tag?
1 Odpowiedź
+ 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.