Skip to main content

HTML References

Complete HTML Tag List

Written by Updated Complete HTML Tag List exercises

This page lists every HTML tag covered in this tutorial, grouped by what it is for: document structure, text, links, lists, media, tables, forms and more. Click any tag to open its full lesson.

Use it as a map. If you know what you want to build but not which tag to use, scan the group that fits. The obsolete tags at the end are listed so you recognize them in old code, not so you use them.

Document Structure Tags

TagDescription
<!DOCTYPE>Defines the document type (HTML5 declaration).
<html>Root element of an HTML page.
<head>Contains metadata and document information.
<title>Specifies the page title (shown in browser tab).
<body>Contains all visible page content.

Metadata Tags

TagDescription
<base>Specifies the base URL for all relative links.
<link>Defines external resources (like CSS).
<meta>Provides metadata like charset, description, or keywords.
<style>Embeds CSS styles in the document.
<script>Embeds or links external JavaScript files.

Text Content Tags

TagDescription
<h1> to <h6>Define headings, from largest to smallest.
<hgroup>Groups a heading with related subheading, alternative title, or tagline content.
<p>Defines a paragraph.
<br>Inserts a line break.
<wbr>Suggests an optional line-break position within text.
<hr>Inserts a horizontal line (thematic break).
<pre>Defines preformatted text.
<b>Bold text (stylistic).
<strong>Important (bold) text (semantic).
<i>Italic text (stylistic).
<em>Emphasized (italic) text (semantic).
<mark>Highlights text.
<small>Displays smaller text.
<del>Shows deleted text.
<ins>Shows inserted text.
<sub>Subscript text.
<sup>Superscript text.
<u>Underlined text.
Represents a fragment of computer code.
<kbd>Represents keyboard or other user input.
<samp>Represents sample output from a program.
<var>Represents a variable or placeholder value.
<s>Marks content that is no longer accurate or relevant.
<dfn>Marks the defining instance of a term.
<data>Associates visible text with a machine-readable value.
<ruby>Wraps base text and its ruby annotations.
<rt>Provides the ruby annotation text.
<rp>Provides fallback punctuation around ruby text for unsupported browsers.
<span>Provides a generic inline container.

Quotation & Citation Tags

TagDescription
<blockquote>Defines a section quoted from another source.
<q>Short inline quotation.
<cite>Reference to a creative work (e.g., book title).
<abbr>Defines an abbreviation or acronym.
<address>Defines contact information.
<bdo>Overrides text direction.
<bdi>Isolates text for bidirectional formatting.

Link & Navigation Tags

TagDescription
<a>Defines a hyperlink.
<nav>Defines navigation links section.

List Tags

TagDescription
<ul>Unordered (bulleted) list.
<menu>Represents a toolbar as an unordered list of commands.
<ol>Ordered (numbered) list.
<li>List item.
<dl>Description list.
<dt>Term/name in a description list.
<dd>Description of a term.

Image & Media Tags

TagDescription
<img>Embeds an image.
<figure>Groups media content with a caption.
<figcaption>Caption for a figure.
<audio>Embeds audio content.
<video>Embeds video content.
<source>Specifies multiple media sources.
<track>Defines text tracks for media (subtitles).
<embed>Embeds external content.
<object>Embeds an external object.
<picture>Defines multiple image sources for responsive images.
<canvas>Used for drawing graphics via JavaScript.
<map>Defines an image map.
<area>Defines clickable areas in an image map.
<iframe>Embeds another HTML page or external document.

Table Tags

TagDescription
<table>Defines a table.
<caption>Table title or caption.
<thead>Groups header content in a table.
<tbody>Groups body content in a table.
<tfoot>Groups footer content in a table.
<tr>Table row.
<th>Table header cell.
<td>Table data cell.
<col>Specifies column properties.
<colgroup>Groups columns for formatting.

Form & Input Tags

TagDescription
<form>Defines a form for user input.
<input>Input control.
<textarea>Multi-line text input.
<button>Clickable button.
<select>Drop-down list.
<selectedcontent>Displays the selected option's content in a customizable select button.
<option>Option in a drop-down list.
<optgroup>Group of options in a list.
<label>Defines label for input control.
<fieldset>Groups form elements.
<legend>Caption for <fieldset>.
<datalist>Provides autocomplete options for input.
<output>Displays calculation or result.
<meter>Displays a measurement (e.g., disk usage).
<progress>Displays progress of a task.

Semantic Layout Tags

TagDescription
<header>Defines a page or section header.
<footer>Defines a footer for a document or section.
<article>Represents independent, self-contained content.
<section>Defines a thematic section.
<aside>Defines content indirectly related to the main content.
<main>Represents the main content of a document.
<search>Contains controls or content for searching or filtering.
<details>Defines collapsible content.
<summary>Defines a summary for <details>.
<dialog>Represents a dialog box or popup.
<time>Represents time and date.
<div>Provides a generic block-level container.

Script & Style Tags

TagDescription
<script>Embeds or references JavaScript.
<noscript>Defines alternate content for users without JavaScript.
<style>Embeds CSS code.

Interactive & Web App Tags

TagDescription
<slot>Placeholder inside a web component.
<template>Defines a template for client-side rendering.

Deprecated / Obsolete Tags (Avoid Using)

TagReason
<center>Use CSS instead.
<font>Use CSS instead.
<big>Use CSS instead.
<strike>Use CSS instead.
<tt>Use CSS instead.
<acronym>Replaced by <abbr>.
<applet>Replaced by <object>.
<frame>, <frameset>, <noframes>Deprecated in HTML5.
<marquee>Non-standard, avoid use.
<blink>Deprecated, not supported.
<param>Obsolete. Set object resource information with <object> attributes instead.
<shadow>Obsolete Shadow DOM v0 element. Use modern Shadow DOM APIs or declarative shadow DOM.

Browser Support

Chrome
Edge
Firefox
Safari
Opera
IE9+
YesYesYesYesYesYes

How to use this list

Complete HTML Tag List exercises

Heading and paragraph

Write the main heading Travel and below it the paragraph Pack light.

Result

Check your answer to see it here.