HTML Elements Cheat Sheet & Reference

Use this dark mode page to review how different native HTML tags render by default in the browser.

Structure & Headings

Tag & Description Visual Example
<h1> to <h6>
Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
<p>
Paragraph

This is a standard paragraph element used for blocks of text body content.

<hr>
Horizontal Rule

Text above the line.


Text below the line.

Inline Text Formatting

Tag & Description Visual Example
<strong> / <b>
Bold / Importance
This text contains strongly emphasized bold words.
<em> / <i>
Italic / Emphasis
This text contains emphasized italicized words.
<mark>
Highlighted text
You can use this tag to highlight important terms visually.
<small>
Fine print
This is smaller text often used for legal disclaimers or footnotes.
<del> and <ins>
Deleted / Inserted
The price is $50 $39 today!
<sub> and <sup>
Subscript / Superscript
Water is H2O. Einstein's formula is E=mc2.
<a>
Hyperlink
Visit the Example Website link.

Lists

Tag & Description Visual Example
<ul> & <li>
Unordered List
  • First bullet item
  • Second bullet item
  • Third bullet item
<ol> & <li>
Ordered List
  1. Step number one
  2. Step number two
  3. Step number three
<dl>, <dt>, <dd>
Description List
HTML
HyperText Markup Language.
CSS
Cascading Style Sheets.

Forms & Interactive Elements

Tag & Description Visual Example
<button>
Button Clickable
<input>
Text Input Types




Choice B
<textarea>
Multi-line Text
<select> & <option>
Dropdown Menu
<details> & <summary>
Collapsible Accordion
Click here to expand details

Hidden content revealed inside the details disclosure element.