HTML tags that have no end tag are called "self-closing" or "void" elements. These elements don't have any content and are closed immediately with a slash ("/>") in XHTML or are left unclosed in HTML5.
Here are some examples of self-closing HTML tags:
: Used to embed images.
: Used to create input fields in forms.
: Used for line breaks.
: Used to provide metadata about the HTML document.
: Used to link external resources like stylesheets.
These tags are self-contained and do not require closing tags because they don't contain any content. They're simply used to define certain elements or provide metadata within the HTML document.
Top comments (0)