
All HTML Tags: HTML (Hypertext Markup Language) is the backbone of web development, offering a structured framework to create and organise content on the internet. Through a series of tags, HTML defines the structure and presentation of web pages. Key tags include <html> for the document structure, <head> for metadata, <title> for page titles, and <body> for content.
Heading tags (<h1> to <h6>) establish hierarchy, while <p> signifies paragraphs. Links are formed with <a>, images with <img>, and lists with <ul> and <ol>. HTML is the cornerstone for crafting visually appealing and functional websites, providing a foundation for CSS (Cascading Style Sheets) and JavaScript to enhance interactivity.
In this blog, we’ll talk about All HTML Tags that you’ll encounter as a web developer, its examples, and much more
HTML Codes List includes essential elements like <!DOCTYPE html>, <html>, <head>, <body>, <title>, <p>, <a>, and more. These codes form the basic structure of a webpage, helping you create and organize content effectively using standard HTML syntax.
Whether you’re building a simple landing page or a full website, these ready-to-use HTML code snippets help you get started fast. Each example is copy-and-paste friendly and includes a short explanation so beginners know what to change.
Use this as the starting point for every page. The <meta> tags help with mobile responsiveness and SEO.
Simple, accessible navigation. Replace links with your page URLs.
Always include alt text for accessibility and SEO. max-width:100% keeps the image responsive.
Use buttons for CTAs like signups or downloads.
Always validate server-side, and use required for basic client-side validation.
Grid makes responsive layouts easy—columns stack on small screens.
Use tables for tabular data only (not for layout).
Replace VIDEO_ID and ensure the embed fits responsively with CSS when needed.
Canonical tags prevent duplicate-content issues. Keep title and description unique per page.
<header>, <main>, <nav>, <footer>.alt text for images.label elements with form fields for screen readers.A simple HTML code example helps beginners understand how structure, tags, and elements work together to form a webpage. By practicing with clean, well-formatted snippets, you’ll quickly grasp how browsers interpret markup and display content visually.
HTML codes for practice give learners real-world scenarios to experiment with headings, images, forms, and layouts. These hands-on exercises strengthen your foundational skills and build confidence to create complete webpages from scratch.
HTML color code samples show how hexadecimal, RGB, and HSL values generate specific shades on a webpage. Testing different color combinations helps you design visually appealing interfaces and maintain consistent branding across your site.
A homepage HTML code example demonstrates how to structure navigation, hero sections, call-to-action buttons, and content blocks. Practicing this helps you create a well-organized, user-friendly landing page that loads fast and engages visitors instantly.
HTML color codes define the exact shades used for text, backgrounds, borders, and UI elements. Understanding hex, RGB, and named colors allows you to customize designs with precision and maintain visual consistency on every page you build.
HTML includes more than 140 standard tags, each designed to structure, format, and present web content effectively. While not all tags are used daily, understanding the core set helps you build functional, accessible, and SEO-friendly webpages with ease.
HTML tags fall into two main types: paired tags (with opening and closing tags) and self-closing tags (single, standalone tags). Paired tags wrap content and define structure, while self-closing tags handle tasks like line breaks, images, and metadata.
A list of 30 essential HTML tags covers commonly used elements like <html>, <head>, <body>, <a>, <img>, <p>, and <div>. These tags define layout, add media, link pages, and control overall structure, making them key to building modern web interfaces.
All HTML tags and their attributes form the full vocabulary of web markup, enabling developers to describe content precisely. Attributes like class, id, href, and src modify tag behavior, giving you granular control over styling, layout, and functionality.
A basic HTML tags list includes foundational elements such as headings, paragraphs, links, images, lists, and tables. Mastering these tags helps beginners construct clean, well-structured pages that display correctly across devices and browsers.
An HTML tags list with uses explains what each element does and when to apply it—whether for layout (<div>), formatting (<strong>), media (<audio>), or navigation (<nav>). Knowing their uses helps you write semantic, accessible, and efficient code.
An HTML tags list with explanations provides concise details about each tag’s role, expected attributes, and typical placement in a webpage. This reference helps learners understand how elements interact and ensures proper, standards-compliant HTML coding.
HTML Tags List includes the core building blocks of web pages, such as headings (<h1> to <h6>), paragraphs (<p>), links (<a>), images (<img>), lists (<ul>, <ol>, <li>), tables (<table>), and many more for structuring content.
HTML Tags List with Examples provides a practical reference to common tags like <p> for paragraphs, <a> for links, <img> for images, and <ul> for lists—each paired with sample code snippets to illustrate how they're used in real HTML documents.
Here's a comprehensive list of 100 HTML tags with examples, grouped by category to help you better understand their purpose and usage. Let's explore list of all html tags with examples:
| Tag | Description | Example |
|---|---|---|
<html> |
Root of the HTML document | <html> ... </html> |
<head> |
Metadata container | <head> ... </head> |
<body> |
Main document content | <body> ... </body> |
<title> |
Page title (in browser tab) | <title>My Page</title> |
<!DOCTYPE> |
Declares document type | <!DOCTYPE html> |
| Tag | Description | Example |
|---|---|---|
<p> |
Paragraph | <p>This is a paragraph.</p> |
<br> |
Line break | Hello<br>World |
<hr> |
Horizontal line | <hr> |
<h1> to <h6> |
Headings | <h1>Heading 1</h1> |
<strong> |
Bold (semantic) | <strong>Important</strong> |
<b> |
Bold (visual only) | <b>Bold Text</b> |
<i> |
Italic (visual only) | <i>Italic Text</i> |
<em> |
Emphasis (semantic italic) | <em>Emphasized</em> |
<mark> |
Highlighted text | <mark>Highlight</mark> |
<small> |
Smaller text | <small>Note</small> |
<sub> |
Subscript | H<sub>2</sub>O |
<sup> |
Superscript | E = mc<sup>2</sup> |
<u> |
Underline | <u>Underlined</u> |
<del> |
Deleted text | <del>Old</del> |
<ins> |
Inserted text | <ins>New</ins> |
| Tag | Description | Example |
|---|---|---|
<a> |
Hyperlink | <a href="https://example.com">Visit</a> |
<link> |
External resources (e.g., CSS) | <link rel="stylesheet" href="style.css"> |
<nav> |
Navigation block | <nav><a href="#home">Home</a></nav> |
| Tag | Description | Example |
|---|---|---|
<img> |
Image | <img src="img.jpg" alt="Image"> |
<video> |
Video | <video controls><source src="video.mp4"></video> |
<audio> |
Audio | <audio controls><source src="audio.mp3"></audio> |
<source> |
Media source | <source src="movie.mp4" type="video/mp4"> |
<track> |
Captions/subtitles | <track src="subs.vtt" kind="subtitles"> |
<embed> |
External resource (e.g., PDF) | <embed src="file.pdf"> |
| Tag | Description | Example |
|---|---|---|
<ul> |
Unordered list | <ul><li>Item</li></ul> |
<ol> |
Ordered list | <ol><li>First</li></ol> |
<li> |
List item | <li>Element</li> |
<dl> |
Description list | <dl><dt>HTML</dt><dd>Markup</dd></dl> |
<dt> |
Term in <dl> |
<dt>Term</dt> |
<dd> |
Description in <dl> |
<dd>Definition</dd> |
| Tag | Description | Example |
|---|---|---|
<table> |
Table container | <table> ... </table> |
<tr> |
Table row | <tr> ... </tr> |
<td> |
Table data cell | <td>Data</td> |
<th> |
Table header cell | <th>Header</th> |
<thead> |
Table header section | <thead><tr><th>Col</th></tr></thead> |
<tbody> |
Table body section | <tbody><tr><td>Row</td></tr></tbody> |
<tfoot> |
Table footer section | <tfoot><tr><td>Foot</td></tr></tfoot> |
<caption> |
Table caption/title | <caption>Sales Data</caption> |
<col> |
Column formatting | <col span="2"> |
<colgroup> |
Group of columns | <colgroup><col></colgroup> |
| Tag | Description | Example |
|---|---|---|
<form> |
Form container | <form> ... </form> |
<input> |
User input | <input type="text"> |
<textarea> |
Multi-line input | <textarea></textarea> |
<label> |
Form label | <label for="name">Name</label> |
<select> |
Dropdown | <select><option>One</option></select> |
<option> |
Dropdown item | <option value="1">One</option> |
<button> |
Button | <button>Click</button> |
<fieldset> |
Group form fields | <fieldset><legend>Info</legend></fieldset> |
<legend> |
Caption for <fieldset> |
<legend>User Info</legend> |
<datalist> |
Predefined input list | <datalist id="browsers"><option>Chrome</option></datalist> |
<output> |
Output result | <output>Result</output> |
| Tag | Description | Example |
|---|---|---|
<header> |
Page or section header | <header> ... </header> |
<footer> |
Page or section footer | <footer> ... </footer> |
<section> |
Generic section | <section> ... </section> |
<article> |
Independent content | <article> ... </article> |
<aside> |
Sidebar content | <aside> ... </aside> |
<main> |
Main content | <main> ... </main> |
<div> |
Generic container | <div> ... </div> |
<span> |
Inline container | <span> ... </span> |
| Tag | Description | Example |
|---|---|---|
<script> |
JavaScript code | <script>alert('Hi')</script> |
<noscript> |
Shown if JS disabled | <noscript>No JS</noscript> |
<meta> |
Metadata | <meta charset="UTF-8"> |
<style> |
Internal CSS | <style>p{color:red}</style> |
| Tag | Description | Example |
|---|---|---|
<details> |
Toggle details | <details><summary>Click</summary>Info</details> |
<summary> |
Visible heading in <details> |
<summary>More</summary> |
<dialog> |
Dialog box | <dialog open>Hi</dialog> |
| Tag | Description | Example |
|---|---|---|
<center> |
Center align | <center>Centered</center> |
<font> |
Font formatting | <font color="red">Text</font> |
<marquee> |
Scrolling text | <marquee>Scroll</marquee> |
| Tag | Description | Example |
|---|---|---|
<iframe> |
Inline frame (embed) | <iframe src="page.html"></iframe> |
<base> |
Base URL for links | <base href="https://example.com/"> |
<time> |
Time value | <time datetime="2025-07-30">Today</time> |
<code> |
Code snippet | <code>print()</code> |
<kbd> |
Keyboard input | <kbd>Ctrl</kbd> |
<samp> |
Sample output | <samp>Hello</samp> |
<var> |
Variable name | <var>x</var> |
<bdi> |
Isolate bidirectional text | <bdi>abc</bdi> |
<bdo> |
Override text direction | <bdo dir="rtl">Text</bdo> |
All HTML Tags and Their Functions define how web content is structured and displayed. Tags like <p> define paragraphs, <a> creates links, <img> embeds images, and <div> organizes layout. Each tag serves a specific purpose to format and present web pages effectively. If in your mind there is a question What are the 10 basic HTML tags? Refer below listed ones.
Also Read: How to Center Text & Headers in CSS Using the Text-Align Property
| Type | Example Code |
| Unordered List | html<br><ul><br> <li>HTML</li><br> <li>CSS</li><br></ul> |
| Ordered List | html<br><ol><br> <li>Step 1</li><br> <li>Step 2</li><br></ol> |
| HTML Version | Approx. Number of Tags |
| HTML5 | 100+ (including semantic, multimedia, and interactive tags) |
Also Read: 5 Easy Ways to Insert Spaces in HTML
| Tag | Why? |
| <h1> | It is the largest heading tag in HTML, used for the main page title and most important heading. |
| Tag | Function |
| <html> | It’s the root tag that wraps all the content and metadata of your HTML document. |
| <main> | Represents the central content area of a webpage, excluding headers, sidebars, and footers. |
Also Read: Know How to Add CSS to HTML with Examples
If you're learning web development, having a complete HTML Tags PDF is extremely helpful. It lets you quickly revise every tag used in HTML—from basic structure tags to formatting, multimedia, semantic, and advanced HTML5 elements. Below is a complete, organized list of HTML tags that can be included in your PDF, along with explanations for beginners.
A complete HTML reference containing:
This PDF helps both beginners and advanced learners get a quick, clean reference sheet for everyday coding.
<html> – Root element<head> – Contains metadata<body> – Main visible content<title> – Page title<meta> – SEO & metadata<link> – Link external files<style> – Internal CSS<script> – JavaScript<p> – Paragraph<b> / <strong> – Bold text<i> / <em> – Italic text<u> – Underline<mark> – Highlight<small> – Smaller text<del> – Deleted text<ins> – Inserted text<sup> – Superscript<sub> – Subscript<br> – Line break<hr> – Horizontal line<h1> to <h6> – Headings
<a> – Anchor/link<nav> – Navigation section<img> – Image<audio> – Audio<video> – Video<source> – Media source<track> – Subtitles<map> – Image map<area> – Clickable area<ul> – Unordered list<ol> – Ordered list<li> – List item<dl> – Description list<dt> – Term<dd> – Description<table> – Table<tr> – Table row<th> – Table header<td> – Table data<caption> – Table title<thead>, <tbody>, <tfoot> – Table sections<form> – Form<input> – Input field<textarea> – Text input<button> – Button<select> – Dropdown<option> – Select option<label> – Field label<fieldset> – Group fields<legend> – Form title<datalist> – Input suggestions<output> – Output result<header> – Header<footer> – Footer<main> – Main content<article> – Article<section> – Section<aside> – Sidebar<figure> – Image + caption<figcaption> – Image caption<details> – Expandable details<summary> – Summary for details<time> – Time/date<iframe> – Embed page<embed> – Embed content<object> – External resource<param> – Parameters<script> – JavaScript<noscript> – Fallback message<canvas> – Drawing area<svg> – Scalable graphics<meta> – Metadata<link rel="canonical"> – Avoid duplicates<meta name="description"> – SEO description<span> – Inline container<div> – Block container<template> – Hidden reusable code<progress> – Progress bar<meter> – Measurement indicatorHTML5 discourages old tags such as:
<center><font><big><tt><frame> / <frameset>The HTML All Tags PDF Free Download provides a complete list of every major HTML tag used in modern web development. It includes structural, semantic, multimedia, table, form, and formatting tags in one easy-to-access document. This PDF is perfect for students, beginners, and developers who want a quick reference guide for efficient coding.
This HTML Tags List PDF contains a well-organized collection of essential HTML tags along with short descriptions of their purpose. From basic tags like <html> and <body> to advanced HTML5 elements, this PDF helps learners understand how each tag functions in building webpages. It’s a handy reference for study, revision, and project work.
The HTML Codes PDF offers practical examples of HTML syntax, attributes, and commonly used code snippets. It includes working examples for text formatting, hyperlinks, images, tables, lists, and forms. Ideal for beginners, this PDF makes it easy to learn and practice real HTML coding without memorizing each element manually.
The HTML Codes List PDF compiles frequently used HTML code patterns in a simple, readable format. It covers headings, paragraphs, buttons, forms, tables, multimedia embedding, and semantic layout codes. This PDF helps learners quickly copy, revise, and implement HTML structures in projects, making it a valuable resource for everyday web development.