Skip to main content
CodeSpeedTest
Languages
Start TypingJump into a test — pick any languageAdaptive TrainingUnlock chars as you master them — home row to !@#$%Practice DrillsFocused sessions targeting weak spotsDaily ChallengesNew coding challenges every dayRace ModeCompete against others in real timeAI OpponentRace against an AI at your WPM level
LeaderboardGlobal rankings for every languageCertificatesEarn verifiable Bronze / Silver / Gold certsActivityDaily streaks & historical analyticsProfileYour stats, badges & achievements
Browse Languages500+ languages with real code examplesBlogTips, guides & deep divesFAQCommon questions answeredGetting StartedNew to CodeSpeedTest?AboutOur story & mission
Pricing
Start Typing
Tools/HTML Tags

HTML Tags Complete Reference

Every HTML element grouped by category — document structure, text, lists, tables, forms, media, and semantic landmarks. A quick-scan reference for developers.

Document Structure

TagDescription
<html>Root element of the HTML document
<head>Container for metadata (not displayed)
<body>All visible page content goes here
<title>Browser tab / window title
<meta>Metadata: charset, viewport, description
<link>Link external resources (CSS, favicon)
<script>Embed or link JavaScript
<style>Inline CSS styles
<base>Base URL for relative links

Text Content

TagDescription
<h1> – <h6>Headings — h1 most important, h6 least
<p>Paragraph of text
<span>Inline container for styling or scripting
<strong>Bold text with semantic importance
<em>Italic text with semantic emphasis
<b>Bold text (stylistic only)
<i>Italic text (stylistic only)
<u>Underlined text
<s>Strikethrough (no longer accurate)
<br>Line break (void element)
<hr>Thematic break / horizontal rule
<pre>Preformatted text (preserves whitespace)
<code>Inline code snippet
<blockquote>Extended quotation
<q>Inline quotation
<abbr>Abbreviation with title attribute
<mark>Highlighted / marked text
<sub>Subscript text
<sup>Superscript text

Lists

TagDescription
<ul>Unordered list (bullets)
<ol>Ordered list (numbers)
<li>List item inside ul or ol
<dl>Description list (term + definition pairs)
<dt>Description term
<dd>Description details / definition

Tables

TagDescription
<table>Table container
<thead>Table header section
<tbody>Table body section
<tfoot>Table footer section
<tr>Table row
<th>Table header cell (bold, centered by default)
<td>Table data cell
<caption>Table caption / title
<colgroup>Group of columns for styling
<col>Individual column styling target

Forms & Inputs

TagDescription
<form>Form container with action and method
<input>Input field — type attribute changes behavior
<button>Clickable button
<select>Dropdown list
<option>Option inside a select
<optgroup>Group of options inside select
<textarea>Multi-line text input
<label>Label for a form control
<fieldset>Group of related form fields
<legend>Caption for a fieldset
<datalist>Pre-defined options for an input
<output>Result of a calculation

Media & Embedding

TagDescription
<img>Embed an image (void element)
<video>Embed video with controls
<audio>Embed audio with controls
<source>Alternative media source for video/audio
<track>Subtitles / captions for video
<picture>Responsive image container
<iframe>Embed another HTML page
<canvas>2D/3D drawing surface (via JavaScript)
<svg>Inline scalable vector graphics
<figure>Self-contained content with optional caption
<figcaption>Caption for a figure element

Semantic / Layout

TagDescription
<header>Introductory content or nav for a section
<nav>Navigation links block
<main>Primary content of the page (unique per page)
<section>Thematic grouping of content
<article>Self-contained, independently shareable content
<aside>Tangentially related content (sidebar)
<footer>Footer for a section or page
<div>Generic block container (no semantic meaning)
<address>Contact information for author/owner
<details>Expandable disclosure widget
<summary>Visible heading for a details element
<dialog>Native modal or dialog box

Practice typing these in CodeSpeedTest →

Reading a tag list won't build muscle memory. Type real HTML snippets — forms, tables, semantic layouts — until the angle brackets flow naturally.

Start typing HTML →Take the coding speed test
CodeSpeedTest

Improve your coding speed, code accuracy, and programming syntax WPM with practice sessions across 500+ programming languages.

Quick Links

HomeAboutFeaturesGetting StartedLanguages

Resources

Pro ⚡ PricingCertifyFAQBlogContactLeaderboardRaceChallengesFree ToolsWPM CalculatorPrivacy PolicyTerms of Service

Connect

CodeSpeedTest on GitHubCodeSpeedTest on TwitterEmail CodeSpeedTest

© 2026 CodeSpeedTest. All rights reserved.