# HTML Elements

An *HTML element* is everything from the start tag to the end tag as well as the content inside.

`<tagname>Content goes here...</tagname>`

HTML elements can be nested (this means that elements can contain other elements).

HTML elements with no content are called empty elements, eg. `<br>` , `<hr>` etc.

HTML tags are not case-sensitive which means `<P>` is the same as `<p>`

Common HTML Elements:

| Element | Reference |
| --- | --- |
| `<html>` | represents the **root** (top-level element) of an HTML document |
| `<head>` | contains machine-readable information (metadata) about the document |
| `<body>` | represents the content of an HTML document |
| `<h1>` to `<h6>` | represent six levels of section headings |
| `<p>` | represents a paragraph |
| `<ul>` | represents an unordered list of items |
| `<a>` | together with its *href* attribute, creates a hyperlink to web pages |
| `<span>` | a generic inline container for phrasing content |
| `<img>` | embeds an image into the document |
| `<script>` | used to embed executable code or data; typically refers to JavaScript code |
| `<table>` | represents tabular data |
| `<form>` | represents a document section containing interactive controls for submitting information |
