HTML and CSS Reference
Some HTML elements do not contain any element content, meaning there is literally nothing
between the opening and closing tag, neither text, nor other elements. However, these ele-
ments can still contain attributes. Examples or empty HTML elements are the <img> ele-
ment, which contains information about how to display an image, and the <br> element,
which simply indicates a line break.
The empty elements can be written regularly with opening and closing tags, for example as
<br></br>. HTML allows the option to combine both tags simply by including the closing
forward slash right before the right angle bracket of the opening tag, for example <br />.
In HTML5, the closing tag is no longer a requirement for empty elements and can be fully