Html Elements
An HTML element is defined by a start tag, some content, and an end tag.
Examples of some HTML elements:
<h1>My First Heading</h1>
<p>My first paragraph.</p>
Empty Elements
- Some HTML elements have no content. These elements are called empty elements.
- Empty elements do not have an end tag!
- Empty elements are sometimes called void elements.
Example:
<br>
Nested Elements
HTML elements can be nested. Elements can contain other elements.
Case-InSenstive
- Tags in HTML are case-insensitive.
- Best practice to write all tags in lowercase for consistency, readability, and other reasons.