The HTML markup language is made up of a variety of elements, also known as "tags". Most tags follow this format:
Notice how there is both an opening and closing part of the tag. The closing tag includes a forward slash at the beginning.
A simple example:
<p>This is a paragraph.</p>
Some HTML tags (like img
and br
) don't have their own content. These are known as self closing tags or empty tags. They look like this:
A simple example:
<br />
The br
tag inserts a line break (not a paragraph break). This tag has no content, so it is self closing.