An HTML element is defined by a start tag, some content, and an end tag.
<tagname>Content</tagname>
Example
-
<h1>My First Heading</h1>
<p>My first paragraph</p>
<p>My first paragraph</p>
- Empty HTML Elements
HTML
elements with no content are called empty elements.
Example -
<br />
is an empty element without a closing tag (the <br />
tag defines a line break)
0 Comments