HTML Elements List

Update :

List of HTML elements and attributes
Element / Attribute [Upper row] Summary [Lower row]
Root element
<html>
  • Represents the root of an HTML document
  • <html></html>
Metadata
<head>
  • Represents a collection of metadata
  • <head></head>
<title>
  • Represents the document's title or name
  • <title></title>
<base>
  • Specifies the document base URL and the default browsing context
  • <base href="">
  • href="URL"
    target="_blank | _self | _parent | _top | BrowsingContextName"
<link>
  • Link the document to other resources
  • <link rel="" href="">
  • rel="LinkType"
    href="URL"
    hreflang="LanguageTag"
    type="MIME-Type"
    media="MediaQuery"
    sizes="any | WidthxHeight"
    crossorigin="anonymous | use-credentials | EmptyString"
    integrity="CharacterString"
    referrerpolicy="no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url | EmptyString"
    imagesrcset="URL | URL Widthw | URL PixelRatiox"
    imagesizes="MediaQuery Width"
    as="audio | audioworklet | document | embed | font | frame | iframe | image | manifest | object | paintworklet | report | script | serviceworker | sharedworker | style | track | video | worker | xslt | fetch"
    color="Color"
    disabled
    title="TitleOfLink | StyleSetName"
<meta>
  • Represents various kinds of metadata
  • <meta charset="UTF-8">
    <meta http-equiv="" content="">
    <meta name="" content="">
  • charset="UTF-8"
    http-equiv="content-type | default-style | refresh | x-ua-compatible | content-security-policy"
    name="application-name | author | description | generator | keywords | referrer | theme-color | color-scheme"
    content="CorrespondingValue"
    media="MediaQuery"
<style>
  • Embed CSS style in the document
  • <style></style>
  • media="MediaQuery"
    title="StyleSetName"
Section
<body>
  • Represents the contents of the document
  • <body></body>
<article>
  • Represents a self-contained section
  • <article></article>
<section>
  • Represents a generic section
  • <section></section>
<nav>
  • Represents a navigation section
  • <nav></nav>
<aside>
  • Represents an incidental section separated from the main content
  • <aside></aside>
<h1>-<h6>
  • Represents a heading
  • <h1></h1> <h2></h2> <h3></h3> <h4></h4> <h5></h5> <h6></h6>
<hgroup>
  • Represents a group of headings
  • <hgroup></hgroup>
<header>
  • Represents a header for a document or section
  • <header></header>
<footer>
  • Represents a footer for a document or section
  • <footer></footer>
<address>
  • Represents the contact information
  • <address></address>
Grouping
<p>
  • Represents a paragraph
  • <p></p>
<hr>
  • Represents a thematic break between paragraph-level
  • <hr>
<pre>
  • Represents preformatted text
  • <pre></pre>
<blockquote>
  • Represents a section quoted from another source
  • <blockquote></blockquote>
  • cite="URL"
<ol>
  • Represents an ordered list
  • <ol></ol>
  • type="1 | a | A | i | I"
    start="Number"
    reversed
<ul>
  • Represents an unordered list
  • <ul></ul>
<menu>
  • Represents a toolbar consisting of list items
  • <menu></menu>
<li>
  • Represents a list item
  • <li></li>
  • value="Number"
<dl>
  • Represents a description list
  • <dl></dl>
<dt>
  • Represents a term or name in a description list
  • <dt></dt>
<dd>
  • Represents a description, definition, or value in a description list
  • <dd></dd>
<figure>
  • Represents a referenced self-contained content
  • <figure></figure>
<figcaption>
  • Represents a caption or legend for a <figure> element
  • <figcaption></figcaption>
<main>
  • Represents the main contents of a document
  • <main></main>
<div>
  • Represents a group of elements (Often used together with the global attributes)
  • <div></div>
Text semantics
<a>
  • Represents a hyperlink
  • <a></a>
  • href="URL"
    hreflang="LanguageTag"
    type="MIME-Type"
    rel="LinkType"
    target="_blank | _self | _parent | _top | BrowsingContextName"
    download | download="FileName"
    ping="URL"
    referrerpolicy="no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url | EmptyString"
<em>
  • Represents emphasized text
  • <em></em>
<strong>
  • Represents strong importance, seriousness, or urgency of text
  • <strong></strong>
<small>
  • Represents side comment expressed in small print
  • <small></small>
<s>
  • Represents text that is no longer accurate or no longer relevant
  • <s></s>
<cite>
  • Represents the title of a work
  • <cite></cite>
<q>
  • Represents a phrase quoted from another source
  • <q></q>
  • cite="URL"
<dfn>
  • Represents a definition term
  • <dfn></dfn>
  • title="DefinitionTerm"
<abbr>
  • Represents an abbreviation or acronym
  • <abbr></abbr>
  • title="ExpandedText"
<ruby>
  • Represents a ruby annotation
  • <ruby></ruby>
<rt>
  • Represents a ruby text of a ruby annotation
  • <rt></rt>
<rp>
  • Represents parentheses around a ruby text of a ruby annotation
  • <rp></rp>
<data>
  • Specifies a machine-readable data of a element content
  • <data value=""></data>
  • value="CharacterString"
<time>
  • Represents a date and time
  • <time></time>
  • datetime="YYYY-MM-DDThh:mm:ssZ | etc..."
<code>
  • Represents a fragment of computer code
  • <code></code>
<var>
  • Represents a variable
  • <var></var>
<samp>
  • Represents sample output from a computer program
  • <samp></samp>
<kbd>
  • Represents user input
  • <kbd></kbd>
<sub>
  • Represents a subscript
  • <sub></sub>
<sup>
  • Represents a superscript
  • <sup></sup>
<i>
  • Represents a span of text in an alternate voice, technical term, etc
  • <i></i>
<b>
  • Represents a span of text in a keyword, product name, etc
  • <b></b>
<u>
  • Represents labeled text
  • <u></u>
<mark>
  • Represents marked or highlighted text
  • <mark></mark>
<bdi>
  • Represents a span of text isolated from its surroundings
  • <bdi></bdi>
  • dir="auto | ltr | rtl"
<bdo>
  • Overrides the Unicode bidirectional algorithm
  • <bdo dir=""></bdo>
  • dir="ltr | rtl"
<span>
  • Represents a span of text (Often used together with the global attributes)
  • <span></span>
<br>
  • Represents a line break
  • <br>
<wbr>
  • Represents a line break opportunity
  • <wbr>
Edit
<ins>
  • Represents a inserted content to a document
  • <ins></ins>
  • cite="URL"
    datetime="YYYY-MM-DDThh:mm:ssZ | etc..."
<del>
  • Represents a deleted content from a document
  • <del></del>
  • cite="URL"
    datetime="YYYY-MM-DDThh:mm:ssZ | etc..."
Embedded
<picture>
  • Embed responsive images in a document
  • <picture></picture>
<source>
  • Specifies multiple source sets or multiple media resources (Used within a <picture>, <video>, or <audio> element)
  • <source src="">
    <source srcset="">
  • type="MIME-Type" (<picture> | <video> | <audio>)
    src="URL" (<video> | <audio>)
    srcset="URL | URL Widthw | URL PixelRatiox" (<picture>)
    media="MediaQuery" (<picture>)
    sizes="MediaQuery Width" (<picture>)
    width="Width" (<picture>)
    height="Height" (<picture>)
<img>
  • Embed an image in a document
  • <img src="">
  • src="URL"
    alt="AlternateText"
    width="Width"
    height="Height"
    usemap="#MapName"
    ismap
    crossorigin="anonymous | use-credentials | EmptyString"
    srcset="URL | URL Widthw | URL PixelRatiox"
    sizes="MediaQuery Width"
    referrerpolicy="no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url | EmptyString"
    decoding="sync | async | auto"
    loading="lazy | eager"
<iframe>
  • Represents a nested browsing context (inline frame)
  • <iframe></iframe>
  • src="URL"
    srcdoc="HTML-Code"
    width="Width"
    height="Height"
    name="BrowsingContextName"
    sandbox | sandbox="allow-forms | allow-modals | allow-orientation-lock | allow-pointer-lock | allow-popups | allow-popups-to-escape-sandbox | allow-presentation | allow-same-origin | allow-scripts | allow-top-navigation | allow-top-navigation-by-user-activation | allow-downloads"
    allow="PermissionsPolicy"
    allowfullscreen

    referrerpolicy="no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url | EmptyString"
    loading="lazy | eager"
<embed>
  • Embed an external application in a document
  • <embed>
  • src="URL"
    type="MIME-Type"
    width="Width"
    height="Height"
<object>
  • Embed an external resource in a document
  • <object></object>
  • data="URL"
    type="MIME-Type"
    width="Width"
    height="Height"
    name="BrowsingContextName"
    form="ID-Name"
<param>
  • Specifies a parameter for an <object> element
  • <param name="" value="">
  • name="ParameterName"
    value="ParameterValue"
<video>
  • Embed a video content in a document
  • <video></video>
  • src="URL"
    poster="URL"
    preload="none | metadata | auto"
    width="Width"
    height="Height"
    autoplay
    loop
    muted
    controls
    playsinline
    crossorigin="anonymous | use-credentials | EmptyString"
<audio>
  • Embed an audio content in a document
  • <audio></audio>
  • src="URL"
    preload="none | metadata | auto"
    autoplay
    loop
    muted
    controls
    crossorigin="anonymous | use-credentials | EmptyString"
<track>
  • Specifies text tracks for a <video> or <audio> element
  • <track src="">
  • src="URL"
    kind="subtitles | captions | descriptions | chapters | metadata"
    srclang="LanguageTag"
    label="LabelText"
    default
<map>
  • Defines an image map
  • <map name=""></map>
  • name="MapName"
<area>
  • Sets an area inside an image map
  • <area>
  • shape="rect | circle | poly | default"
    coords="Coordinates(x,y...)"
    href="URL"
    alt="AlternateText"
    rel="LinkType"
    target="_blank | _self | _parent | _top | BrowsingContextName"
    download | download="FileName"
    ping="URL"
    referrerpolicy="no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url | EmptyString"
Table
<table>
  • Represents a table
  • <table></table>
<caption>
  • Represents a table caption
  • <caption></caption>
<colgroup>
  • Represents a group of one or more columns in a table
  • <colgroup></colgroup>
  • span="NumberOfColumns"
<col>
  • Represents one or more columns within a <colgroup> element
  • <col>
  • span="NumberOfColumns"
<tbody>
  • Represents a group of rows that consist of a body in a table
  • <tbody></tbody>
<thead>
  • Represents a group of rows that consist of a header in a table
  • <thead></thead>
<tfoot>
  • Represents a group of rows that consist of a footer in a table
  • <tfoot></tfoot>
<tr>
  • Represents a row in a table
  • <tr></tr>
<td>
  • Represents a cell in a table
  • <td></td>
  • colspan="NumberOfColumns"
    rowspan="NumberOfRows"
    headers="ID-Name"
<th>
  • Represents a header cell in a table
  • <th></th>
  • colspan="NumberOfColumns"
    rowspan="NumberOfRows"
    abbr="Abbreviation"
    headers="ID-Name"
    scope="auto | row | col | rowgroup | colgroup"
Form
<form>
  • Represents a form for user input
  • <form></form>
  • action="URL"
    method="get | post"
    enctype="application/x-www-form-urlencoded | multipart/form-data | text/plain"
    accept-charset="UTF-8"
    name="FormName"
    rel="LinkType"
    target="_blank | _self | _parent | _top | BrowsingContextName"
    autocomplete="on | off"
    novalidate
<label>
  • Represents a label for a form control
  • <label></label>
  • for="ID-Name"
<input>
  • Represents an input control (input fields / choices / buttons)
  • <input>
  • --- Common ---
    type="text | password | tel | url | email | search | date | month | week | time | datetime-local | number | range | color | radio | checkbox | file | hidden | submit | image | reset | button"
    name="ControlName"
    value="ControlValue"
    disabled
    form="ID-Name"
  • --- Depends on input type ---
    size="NumberOfCharactersForWidth"
    minlength="MinimumNumberOfCharacters"
    maxlength="MaximumNumberOfCharacters"
    min="MinimumValue"
    max="MaximumValue"
    step="Granularity | any"
    autocomplete="on | off | etc..."
    list="ID-Name"
    pattern="RegularExpression"
    placeholder="InputHint"
    dirname="DirectionSendName"
    accept="MIME-Type | .FileExtension | audio/* | video/* | image/*"
    multiple
    checked
    readonly
    required
    src="URL"
    alt="AlternateText"
    width="Width"
    height="Height"
    formaction="URL"
    formmethod="get | post"
    formenctype="application/x-www-form-urlencoded | multipart/form-data | text/plain"
    formtarget="_blank | _self | _parent | _top | BrowsingContextName"
    formnovalidate
<button>
  • Represents a button with element contents
  • <button></button>
  • type="submit | reset | button"
    name="ControlName"
    value="ControlValue"
    disabled
    form="ID-Name"
    formaction="URL"
    formmethod="get | post"
    formenctype="application/x-www-form-urlencoded | multipart/form-data | text/plain"
    formtarget="_blank | _self | _parent | _top | BrowsingContextName"
    formnovalidate
<select>
  • Represents a drop-down list
  • <select></select>
  • name="ControlName"
    size="NumberOfVisible"
    autocomplete="on | off | etc..."
    multiple
    disabled
    form="ID-Name"
    required
<datalist>
  • Represents a list of pre-defined options for an input field
  • <datalist></datalist>
<optgroup>
  • Represents a group of <option> elements in a drop-down list
  • <optgroup label=""></optgroup>
  • label="LabelText"
    disabled
<option>
  • Represents an option in a <select> or <datalist> element
  • <option></option>
  • value="ControlValue"
    label="LabelText"
    selected
    disabled
<textarea>
  • Represents a multiline text input field
  • <textarea></textarea>
  • name="ControlName"
    cols="NumberOfCharactersForWidth"
    rows="NumberOfLinesToShow"
    minlength="MinimumNumberOfCharacters"
    maxlength="MaximumNumberOfCharacters"
    wrap="soft | hard"
    form="ID-Name"
    autocomplete="on | off | etc..."
    placeholder="InputHint"
    dirname="DirectionSendName"
    readonly
    disabled
    required
<output>
  • Represents an output field such as calculation results
  • <output></output>
  • name="FieldName"
    for="ID-Name"
    form="ID-Name"
<progress>
  • Represents the progress of a task
  • <progress></progress>
  • value="CurrentValue"
    max="MaximumValue"
<meter>
  • Represents a quantity within a known range, or a percentage
  • <meter value=""></meter>
  • value="CurrentValue"
    min="MinimumValue"
    max="MaximumValue"
    low="HighLimitOfLowRange"
    high="LowLimitOfHighRange"
    optimum="OptimumValue"
<fieldset>
  • Represents a group of form controls
  • <fieldset></fieldset>
  • form="ID-Name"
    name="GroupName"
    disabled
<legend>
  • Represents a caption for a <fieldset> element
  • <legend></legend>
Interactive
<details>
  • Represents a disclosure widget that provides detailed information
  • <details></details>
  • open
<summary>
  • Represents a summary or caption for a <details> element
  • <summary></summary>
<dialog>
  • Represents a dialog box or sub window
  • <dialog></dialog>
  • open
Scripting
<script>
  • Embed a JavaScript in a document
  • <script></script>
  • src="URL"
    type="MIME-Type | module"
    crossorigin="anonymous | use-credentials | EmptyString"
    integrity="CharacterString"
    referrerpolicy="no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url | EmptyString"
    async
    defer
    nomodule
<noscript>
  • Represents an alternate content if scripting is disabled
  • <noscript></noscript>
<template>
  • Represents a template of HTML code used in a script
  • <template></template>
<slot>
  • Represents a slot within Shadow DOM
  • <slot></slot>
  • name="SlotName"
<canvas>
  • Represents a canvas for drawing graphics via scripting
  • <canvas></canvas>
  • width="Width"
    height="Height"
Global attribute
accesskey
  • Assigns an access key to an element
  • accesskey="Key"
autocapitalize
  • Specifies autocapitalization of input characters (For software keyboard)
  • autocapitalize="off | none | on | sentences | words | characters"
autofocus
  • Set automatic focus to an element
  • autofocus
class
  • Add a class name to an element
  • class="ClassName"
contenteditable
  • Specifies whether the element content is editable
  • contenteditable="true | false | EmptyString"
dir
  • Specifies the text direction of the element content
  • dir="ltr | rtl | auto"
draggable
  • Specifies whether the element is draggable
  • draggable="true | false"
enterkeyhint
  • Specifies the type of action label to display on the enter key (For software keyboard)
  • enterkeyhint="enter | done | go | next | previous | search | send"
hidden
  • Specifies that the element is currently not relevant
  • hidden
id
  • Add a unique id to an element
  • id="ID-Name"
inputmode
  • Specifies the type of input mode (For software keyboard)
  • inputmode="none | text | tel | url | email | numeric | decimal | search"
is
  • Associate that the element with a customized built-in element
  • is="CustomElementName"
itemid
  • Specifies a global identifier for an item (For microdata)
  • itemid="URL"(URI?)
itemprop
  • Specifies a property name for an item (For microdata)
  • itemprop="PropertyName"
itemref
  • Associate that the element with an item outside the item group (For microdata)
  • itemref="ID-Name"
itemscope
  • Represents that the element content is a group of items (For microdata)
  • itemscope
itemtype
  • Specifies the definition of the property name used within the item group (For microdata)
  • itemtype="URL"
lang
  • Specifies the language of the element content
  • lang="LanguageTag"
nonce
  • Represents a cryptographic nonce (number used once) used by Content Security Policy
  • nonce="CryptographicNonce"
slot
  • Associate that the element with a specific <slot> element
  • slot="SlotName"
spellcheck
  • Specifies whether the input text is to have spelling- and grammar-checking enabled
  • spellcheck="true | false | EmptyString"
style
  • Specifies a CSS style directly to a element
  • style="CSS-Code"
tabindex
  • Specifies the tab order of an element
  • tabindex="Number"
title
  • Represents supplementary information for an element
  • title="Text"
translate
  • Specifies whether the element content to the object of translation
  • translate="yes | no | EmptyString"