HTML Reference β€” Lesson 1 Tags

⬇ Download HTML Reference (Printable PDF)

This page shows all the essential HTML tags you'll use in your first projects, with examples and results.

← Back to Lesson 1

Jump to Quick Reference ↓

Full Reference

<h1> to <h6> β€” Headings

Used for titles and subtitles. <h1> is largest, <h6> is smallest.

<h1>Main Title</h1>
<h3>Subtitle</h3>

Main Title

Subtitle


<p> β€” Paragraph

Normal blocks of text.

<p>This is a paragraph of text.</p>

This is a paragraph of text.


<a> β€” Link

Creates a clickable link to another page.

<a href="https://example.com">Visit Page</a>

<img> β€” Image

Displays an image. Uses src, alt, and width.

<img src="hero.png" width="150" alt="Hero">
Hero

<button> β€” Button

A clickable button.

<button>Click Me</button>

<ul>, <ol>, <li> β€” Lists

<ul> creates bullet lists. <ol> creates numbered lists. <li> is an item inside a list.

<ul>
  <li>Speed: 90</li>
  <li>Stealth: 97</li>
</ul>
  • Speed: 90
  • Stealth: 97

<br> β€” Line Break

Moves the next text to a new line.

Line 1<br>Line 2
Line 1
Line 2

<hr> β€” Horizontal Line

Creates a dividing line.

<hr>

Quick Reference (Short)

Use this when you already know the basics and just need to remember the syntax.

<h1>Title</h1>
<p>Text</p>
<a href="">Link</a>
<title>Page Name</title>
<img src="" alt="" width="">
<button>Press</button>
<ul><li>Item</li></ul>
<ol><li>1</li></ol>
Line 1<br>Line 2
<hr>
↑ Back to Full Reference
← Back to Lesson 1