HTML Tag List
This is a quick reference of the HTML elements you'll use most often, grouped by what they do. Each row links to the lesson where the element is explained with examples. Type in the search box to filter the list — for example "table", "form" or "img".
You don't need to memorize all of these. Professional developers look things up all the time. What matters is knowing that an element exists and roughly what it's for; this page is here for the rest.
| Tag | What it does | Lesson |
|---|---|---|
<!DOCTYPE html> | Declares a modern HTML document. Always the first line. | Page Structure |
<html> | The root element that wraps the whole page. | Page Structure |
<head> | Holds information about the page (title, meta, links). | Head & Meta |
<title> | The page title shown on the browser tab and in search results. | Head & Meta |
<meta> | Metadata: character set, viewport, description, Open Graph. | Head & Meta |
<link> | Connects external files such as CSS or a favicon. | Head & Meta |
<style> | CSS written inside the page. | Styles |
<script> | JavaScript code or a link to a JavaScript file. | HTML + JavaScript |
<body> | All the visible content of the page. | Page Structure |
<h1> – <h6> | Headings, from most to least important. | Headings |
<p> | A paragraph. | Paragraphs |
<br> | A line break inside text. | Paragraphs |
<hr> | A thematic break, shown as a horizontal line. | Headings |
<pre> | Preformatted text that keeps spaces and line breaks. | Paragraphs |
<strong> | Important text (bold). | Text Formatting |
<em> | Emphasized text that changes the meaning (italic). | Text Formatting |
<b> | Text that draws attention, without extra importance. | Text Formatting |
<i> | Alternate voice: foreign words, scientific names. | Text Formatting |
<mark> | Highlighted text. | Text Formatting |
<small> | Side comments and fine print. | Text Formatting |
<del> / <ins> | Deleted and inserted text. | Text Formatting |
<sub> / <sup> | Subscript (H₂O) and superscript (x²). | Text Formatting |
<code> | A short piece of computer code inside text. | Computer Code |
<kbd> | Keyboard input, like Ctrl + S. | Computer Code |
<blockquote> | A long quotation. | Quotes & Citations |
<q> | A short inline quotation (adds quote marks). | Quotes & Citations |
<cite> | The title of a creative work. | Quotes & Citations |
<abbr> | An abbreviation or acronym, with its meaning in title. | Quotes & Citations |
<address> | Contact information for the page or article owner. | Quotes & Citations |
<time> | A date or time in a machine-readable form. | Semantic Elements |
<!-- --> | A comment, hidden from the page. | Comments |
<a> | A link to another page, a section, an email or a phone number. | Links |
<img> | An image. | Images |
<figure> / <figcaption> | An image (or other content) with a caption. | Images |
<audio> | A sound or music player. | Audio & Video |
<video> | A video player. | Audio & Video |
<source> | A media file option inside audio or video. | Audio & Video |
<track> | Captions or subtitles for a video. | Audio & Video |
<iframe> | Shows another web page inside yours (YouTube, Maps, Forms). | Iframes |
<ul> | An unordered (bulleted) list. | Lists |
<ol> | An ordered (numbered) list. | Lists |
<li> | One item in a list. | Lists |
<dl>, <dt>, <dd> | A description list: terms and their descriptions. | Lists |
<table> | A table of data. | Tables |
<tr> | A table row. | Tables |
<th> | A table header cell. | Tables |
<td> | A table data cell. | Tables |
<caption> | The title of a table. | Tables |
<thead>, <tbody>, <tfoot> | Groups of header, body and footer rows. | Tables Part 2 |
<div> | A generic block container for grouping and layout. | Block & Inline |
<span> | A generic inline container for part of a line. | Block & Inline |
<header> | The top part of a page or section. | Semantic Elements |
<nav> | A block of main navigation links. | Semantic Elements |
<main> | The main content of the page (one per page). | Semantic Elements |
<section> | A themed part of the page with its own heading. | Semantic Elements |
<article> | A self-contained piece, like a post or news story. | Semantic Elements |
<aside> | Side content related to the page. | Semantic Elements |
<footer> | The bottom part of a page or section. | Semantic Elements |
<form> | A form that collects and sends user input. | Forms |
<input> | A form field; its type sets the kind (text, email, date…). | Input Types |
<label> | A caption for a form field. | Forms |
<button> | A clickable button. | Select, Textarea & Buttons |
<select> / <option> | A dropdown list and its choices. | Select, Textarea & Buttons |
<optgroup> | A labeled group of options in a dropdown. | Select, Textarea & Buttons |
<textarea> | A multi-line text box. | Select, Textarea & Buttons |
<datalist> | Suggestions for an input while typing. | Select, Textarea & Buttons |
<fieldset> / <legend> | A group of related form fields and its title. | Forms |
<samp> | Sample output from a program, like an error message. | Computer Code |
<var> | A variable in math or programming. | Computer Code |
<details> | A section that opens and closes when clicked. | Buttons & Interactive |
<summary> | The always-visible title of a <details> section. | Buttons & Interactive |
<dialog> | A pop-up box that appears on top of the page. | Buttons & Interactive |
<progress> | Shows how far along a task is, like a loading bar. | Buttons & Interactive |
<meter> | A measurement within a range, like a battery level. | Buttons & Interactive |
<noscript> | Content shown only when JavaScript is turned off. | HTML + JavaScript |
<svg> | A drawing area for vector graphics written as code. | SVG Graphics |
<canvas> | A drawing board painted with JavaScript. | Canvas |
Tags you may see in old code
Some elements from older versions of HTML are no longer used. Browsers may still show them, but you should use CSS instead:
<font>— replaced by the CSScolor,font-familyandfont-sizeproperties.<center>— replaced by CSStext-align: centeror Flexbox.<marquee>— scrolling text; hard to read and no longer standard.<frame>and<frameset>— replaced by normal pages and<iframe>.
If a school module or old reviewer uses these, it's fine to recognize them — just don't use them in new pages.