HTML (HyperText Markup Language) is the backbone of every website. It defines the structure of a webpage using tags. If youβre a beginner learning HTML or a developer brushing up your knowledge, hereβs a complete list of HTML tags with descriptions and examples.
πΉ What are HTML Tags?
- HTML tags are keywords wrapped in angle brackets
< >. - Most tags come in pairs: an opening tag
<p>and a closing tag</p>. - Some tags are self-closing like
<br>or<img>.
πΉ Basic Structure of an HTML Document
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a paragraph.</p>
</body>
</html>
πΉ List of All HTML Tags
Iβve grouped them into categories so itβs easier to understand:
1. Document Structure Tags
<!DOCTYPE>β Defines the document type.<html>β Root element of HTML page.<head>β Contains metadata, title, scripts, and styles.<title>β Title of the document (shown in browser tab).<body>β Contains all visible content.
2. Headings & Text Formatting
<h1>to<h6>β Headings,<h1>is the largest,<h6>the smallest.<p>β Paragraph.<br>β Line break.<hr>β Horizontal line (divider).<b>/<strong>β Bold text.<i>/<em>β Italic text.<u>β Underlined text.<mark>β Highlighted text.<small>β Smaller text.<sup>β Superscript (e.g., x2).<sub>β Subscript (e.g., H2O).<abbr>β Abbreviation tooltip.<blockquote>β Quoted section.<code>β Inline code snippet.<pre>β Preformatted text (preserves spaces & newlines).
3. Lists
<ul>β Unordered list (bullets).<ol>β Ordered list (numbers).<li>β List item.<dl>β Definition list.<dt>β Definition term.<dd>β Definition description.
4. Links & Navigation
<a>β Anchor (hyperlink).<nav>β Navigation section.
5. Images & Multimedia
<img>β Insert image.<audio>β Add audio file.<video>β Embed video.<source>β Define media file source.<track>β Subtitles/captions for video.<canvas>β Drawing graphics.<svg>β Scalable Vector Graphics.<map>β Image map.<area>β Clickable area in image map.
6. Tables
<table>β Table.<tr>β Table row.<td>β Table data cell.<th>β Table header cell.<thead>β Group of header rows.<tbody>β Group of body rows.<tfoot>β Group of footer rows.<caption>β Table caption.<col>/<colgroup>β Column properties.
7. Forms & Input
<form>β Form container.<input>β Input field (text, checkbox, radio, etc.).<textarea>β Multi-line text input.<button>β Clickable button.<select>β Dropdown menu.<option>β Option in dropdown.<label>β Label for input.<fieldset>β Group of form fields.<legend>β Caption for<fieldset>.<datalist>β Autocomplete options.<output>β Displays result of calculation.<meter>β Displays a measurement (e.g., progress).<progress>β Progress bar.
8. Semantic Elements (HTML5)
<header>β Defines header section.<footer>β Defines footer section.<main>β Main content area.<article>β Self-contained content.<section>β Thematic grouping of content.<aside>β Sidebar content.<figure>β Image + caption.<figcaption>β Caption for image.<time>β Date/time.
9. Scripting & Styles
<script>β JavaScript code.<noscript>β Fallback if JS disabled.<style>β CSS styling.<link>β Link external stylesheet.
10. Miscellaneous
<div>β Block-level container.<span>β Inline container.<iframe>β Embed another webpage.<embed>β External application (e.g., Flash, PDF).<object>β External resource (audio, video, etc.).<param>β Parameters for<object>.
πΉ HTML Deprecated Tags
Some tags are deprecated (no longer recommended) like <font>, <center>, <big>. Use CSS instead.
πΉ Example: A Complete HTML Page
<!DOCTYPE html>
<html>
<head>
<title>HTML Tags Example</title>
</head>
<body>
<header>
<h1>Welcome to HTML Tags Guide</h1>
</header>
<section>
<h2>Example List</h2>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
</section>
<footer>
<p>Β© 2025 LearnersStore.com</p>
</footer>
</body>
</html>
β Conclusion
HTML has over 100 tags, each serving a unique purpose. If youβre starting out, focus on the most commonly used tags like <html>, <head>, <body>, <div>, <p>, <h1>β<h6>, <a>, <img>, <form>, and gradually explore advanced ones like <canvas>, <svg>, <video>.
π Save this post as your HTML tag reference guide.