Skip to content

HTML Elements

Common elements

Some of the most common elements you will use are below.

ExampleDescription
<h2>Comedies</h2>A second level header. You can use <h1> to <h6> for different header levels.
<ul><li>Item</li></ul>An unordered list (bullet points).
<ol><li>Item</li></ol>An ordered list (numbered).
<a href="url">Click here</a>An anchor tag creates a link to the given url.
<img src="url" alt="text" />An image hosted at the given url. The alt text provides a description for screen readers.
<button>Click me</button>Creates a clickable element on the page.