HTML elements

If you don't know what an element is or how you must use it, I recommend you read the "HTML tags and attributes" tutorial that you can find in the HTML tutorials section.

Below is a list of all elements in the HTML standard up to version 5, along with a short description about it's use/purpose. Clicking on any element on this list will take you to a page with a detailed description about it, some examples of its use and a list of all attributes it supports.

You should bear in mind that newer elements, like those added in HTML5, may have partial support or no support at all in some browsers. This will change with time, but meanwhile, if you're designing a website that needs to be viewed correctly in all browsers, you may want to avoid their use or replace them with other alternatives like scripts. All features of HTML5 with incomplete browser support are properly marked with red and accompanied by warning messages.

The comment tag and the !DOCTYPE declaration, not being elements strictly speaking, aren't listed in the following table.

Elements list

TagAddedShort description

THe root element

<html>Main container

Document metadata

<head>The document's header
<title>The document's title
<base>Base URI to solve relative URIs
<link>Relational information for documents
<meta>Variable for the document
<style>Presentational attributes


<body>The document's body
<article>Distributable content
<section>Defines a section
<nav>Navigational section
<aside>Content only slightly related
<h1>A level 1 heading
<h2>A level 2 heading
<h3>A level 3 heading
<h4>A level 4 heading
<h5>A level 5 heading
<h6>A level 6 heading
<hgroup>Groups consecutive headings
<header>The header of a section
<footer>The footer of a section
<address>Author's contact information

Grouping content

<hr>Content separator
<pre>Preformatted text block
<blockquote>Block level quotation
<ol>Ordered list
<ul>Unordered list
<li>List item
<dl>Description list
<dt>Term in a description list
<dd>Description in a description list
<figure>Self-contained information
<figcaption>Caption for a figure
<main>Main content of a section
<div>Generic container for blocks of text

Text-level semantics

<em>Text with emphasis
<strong>Text with strong emphasis
<small>Side commment
<s>Content no longer accurate or relevant
<cite>Citation or reference
<q>Inline quotation
<dfn>Term defined in the surrounding text
<abbr>Abbreviated term
<ruby>Ruby annotated text
<rt>Ruby annotation
<rp>Text to be ignored in ruby
<data>Machine-readable information
<time>Date and/or time
<code>Computer code
<var>Instance of a variable
<samp>A program's sample output
<kbd>Text entered by users
<sub>Texto en subíndice
<sup>Texto en superíndice
<i>Text offset from the normal prose
<b>Text offset from its surrounding content
<u>Non-textual annotations
<mark>Marks text in another document
<bdi>Isolates text for bidirectional formatting
<bdo>Overrides the bidirectional algorithm
<span>Generic container for runs of text
<br>Line break
<wbr>Line break opportunity


<ins>Added text
<del>Deleted text

Embedded content

<picture>Multi-source image
<iframe>Nested browsing context
<embed>Inserts external applications
<object>Inserts external applications
<param>Parameter for an external application
<source>Alternative media resource
<track>Text tracks for videos
<map>Client-side image map
<area>Sector in an image map

Tabular data

<caption>The caption of a table
<colgroup>Group of columns
<col>Sets attributes for columns
<tbody>The body of the table
<thead>The header of the table
<tfoot>The footer of the table
<td>Regular cell
<th>Header cell


<label>Label for a control
<input>Input control
<select>List of options
<datalist>Suggestions for controls
<optgroup>Group of options in a list
<option>An option in list
<textarea>Multi-line text input
<keygen>Key pair generation control
<output>The output of a process
<progress>A task's completion progress
<meter>A measurement
<fieldset>Group of controls
<legend>The caption of a group of controls

Interactive elements

<details>Collapsable content
<summary>A summary for collapsable content
<menuitem>An item in a menu
<dialog>Dialog box


<script>Embeds scripts
<noscript>Alternative content for scripts
<template>Plantilla para información a agregar
<canvas>Container for dynamic bitmap graphics