How to Work with Empty and Container Tags in HTML
Generally speaking, HTML has two types of tags: empty and container. In this how-to, you'll learn the difference between the two.
Most HTML elements consist of a starting tag, an ending tag, and
everything that comes between the two tags, which is known
as the element's contents. Here's an example of an element with a starting tag,
and ending tag, and content:
When tags are part of an element that can have content, the tags are called container tags.
Some elements only have a single tag and therefore can't have any content. These elements are called empty elements or empty tags.
Empty elements have the following syntax:
<tagname att1="value" att2="value">
The empty elements are: