The index of elements from the HTML Living Standard. G means the global attributes, listed on the attributes page. Content categories are abbreviated: flow, phrasing, heading, sectioning, embedded, interactive, palpable, metadata, transparent; form-associated elements are also listed, labelable, submittable and resettable where noted.
All elements
| Element | What it is | Categories | Contains | Attributes |
|---|---|---|---|---|
a | Hyperlink | flow, phrasing, interactive, palpable | Transparent, no interactive content | G, href, target, download, ping, rel, hreflang, type, referrerpolicy |
abbr | Abbreviation | flow, phrasing, palpable | Phrasing | G |
address | Contact information for the page or article | flow, palpable | Flow, no heading or sectioning, no address, header or footer | G |
area | Hyperlink area in an image map | flow, phrasing | Nothing (void) | G, alt, coords, shape, href, target, download, ping, rel, referrerpolicy |
article | Self-contained composition | flow, sectioning, palpable | Flow | G |
aside | Sidebar, tangential content | flow, sectioning, palpable | Flow | G |
audio | Sound player | flow, phrasing, embedded, interactive, palpable | source and track, then transparent | G, src, crossorigin, preload, autoplay, loading, loop, muted, controls |
b | Text drawn to attention, without extra importance | flow, phrasing, palpable | Phrasing | G |
base | The document’s base URL and default target | metadata | Nothing (void) | G, href, target |
bdi | Isolates text from its surroundings for bidirectional layout | flow, phrasing, palpable | Phrasing | G |
bdo | Overrides the text direction | flow, phrasing, palpable | Phrasing | G, dir |
blockquote | A quotation from another source | flow, palpable | Flow | G, cite |
body | The document’s content | none | Flow | G, the window event handlers (onafterprint … onunload) |
br | A line break | flow, phrasing | Nothing (void) | G |
button | A button | flow, phrasing, interactive, form (listed, labelable, submittable), palpable | Phrasing, no interactive content | G, command, commandfor, disabled, form, formaction, formenctype, formmethod, formnovalidate, formtarget, name, popovertarget, popovertargetaction, type, value |
canvas | A bitmap drawn by script | flow, phrasing, embedded, palpable | Transparent, no interactive content other than certain controls | G, width, height |
caption | A table’s caption | none | Flow, no tables | G |
cite | The title of a work | flow, phrasing, palpable | Phrasing | G |
code | Computer code | flow, phrasing, palpable | Phrasing | G |
col | A table column | none | Nothing (void) | G, span |
colgroup | A group of table columns | none | col and template | G, span |
data | A value with a machine-readable form | flow, phrasing, palpable | Phrasing | G, value |
datalist | Suggestions for an input | flow, phrasing | Phrasing, or option and script-supporting | G |
dd | A description in a description list | none | Flow | G |
del | Text that has been removed | flow, phrasing, palpable | Transparent | G, cite, datetime |
details | A disclosure widget | flow, interactive, palpable | One summary, then flow | G, name, open |
dfn | The defining use of a term | flow, phrasing, palpable | Phrasing, no dfn | G |
dialog | A dialog box or window | flow | Flow | G, closedby, open |
div | A generic flow container | flow, palpable | Flow, or dt, dd and script-supporting in a dl | G |
dl | A description list | flow, palpable | dt and dd groups, or div groups, and script-supporting | G |
dt | A term in a description list | none | Flow, no header, footer, sectioning or heading | G |
em | Stress emphasis | flow, phrasing, palpable | Phrasing | G |
embed | External content, such as a plugin | flow, phrasing, embedded, interactive, palpable | Nothing (void) | G, src, type, width, height |
fieldset | A group of form controls | flow, form (listed), palpable | An optional legend, then flow | G, disabled, form, name |
figcaption | A figure’s caption | none | Flow | G |
figure | A self-contained figure | flow, palpable | Flow, with an optional figcaption first or last | G |
footer | Footer of a section or the page | flow, palpable | Flow, no header or footer | G |
form | A form to fill in and submit | flow, palpable | Flow, no form | G, accept-charset, action, autocomplete, enctype, method, name, novalidate, rel, target |
h1 | Top-level heading | flow, heading, palpable | Phrasing | G |
h2 | Second-level heading | flow, heading, palpable | Phrasing | G |
h3 | Third-level heading | flow, heading, palpable | Phrasing | G |
h4 | Fourth-level heading | flow, heading, palpable | Phrasing | G |
h5 | Fifth-level heading | flow, heading, palpable | Phrasing | G |
h6 | Sixth-level heading | flow, heading, palpable | Phrasing | G |
head | Metadata for the document | none | Metadata, with exactly one title | G |
header | Introduction to a section or the page | flow, palpable | Flow, no header or footer | G |
hgroup | A heading with related text | flow, palpable | One heading, with p elements before or after it | G |
hr | A thematic break | flow | Nothing (void) | G |
html | The root element | none | head, then body | G |
i | Text in another voice or mood, or a technical term | flow, phrasing, palpable | Phrasing | G |
iframe | A nested browsing context | flow, phrasing, embedded, interactive, palpable | Nothing (its text is raw and ignored) | G, src, srcdoc, name, sandbox, allow, allowfullscreen, width, height, referrerpolicy, loading |
img | An image | flow, phrasing, embedded, interactive with usemap, form, palpable | Nothing (void) | G, alt, src, srcset, sizes, crossorigin, usemap, ismap, controls, width, height, referrerpolicy, decoding, loading, fetchpriority |
input | A form control; its type attribute picks which | flow, phrasing, interactive, form (listed, labelable, submittable, resettable), palpable | Nothing (void) | G, accept, alpha, alt, autocomplete, checked, colorspace, dirname, disabled, form, formaction, formenctype, formmethod, formnovalidate, formtarget, height, list, max, maxlength, min, minlength, multiple, name, pattern, placeholder, popovertarget, popovertargetaction, readonly, required, size, src, step, type, value, width |
ins | Text that has been added | flow, phrasing, palpable | Transparent | G, cite, datetime |
kbd | Keyboard input | flow, phrasing, palpable | Phrasing | G |
label | A caption for a form control | flow, phrasing, interactive, palpable | Phrasing, no label | G, for |
legend | A caption for a fieldset | none | Phrasing, optionally heading | G |
li | A list item | none | Flow | G, value |
link | A link to an external resource | metadata, flow and phrasing when allowed in body | Nothing (void) | G, href, crossorigin, rel, as, media, hreflang, type, sizes, imagesrcset, imagesizes, referrerpolicy, integrity, blocking, color, disabled, fetchpriority |
main | The main content of the page | flow, palpable | Flow | G |
map | An image map | flow, phrasing, palpable | Transparent, with area descendants | G, name |
mark | Highlighted text | flow, phrasing, palpable | Phrasing | G |
math | MathML mathematics | flow, phrasing, embedded, palpable | Per the MathML specification | Per MathML |
menu | A list of commands | flow, palpable | li and script-supporting | G |
meta | Metadata not expressible with other elements | metadata, flow and phrasing when allowed | Nothing (void) | G, name, http-equiv, content, charset, media |
meter | A gauge within a known range | flow, phrasing, labelable, palpable | Phrasing, no meter | G, value, min, max, low, high, optimum |
nav | A section of navigation links | flow, sectioning, palpable | Flow | G |
noscript | Content for readers without scripting | metadata, flow, phrasing | Varies with where it appears | G |
object | An image, nested page or plugin | flow, phrasing, embedded, interactive, form (listed), palpable | Transparent | G, data, type, name, form, width, height |
ol | An ordered list | flow, palpable | li and script-supporting | G, reversed, start, type |
optgroup | A group of options | none | option and script-supporting | G, disabled, label |
option | A choice in a select or datalist | none | Text, or phrasing when label is absent | G, disabled, label, selected, value |
output | The result of a calculation | flow, phrasing, form (listed, labelable, resettable), palpable | Phrasing | G, for, form, name |
p | A paragraph | flow, palpable | Phrasing | G |
picture | An image with alternative sources | flow, phrasing, embedded, palpable | source elements, then one img | G |
pre | Preformatted text | flow, palpable | Phrasing | G |
progress | A progress bar | flow, phrasing, labelable, palpable | Phrasing, no progress | G, value, max |
q | An inline quotation | flow, phrasing, palpable | Phrasing | G, cite |
rp | Fallback parentheses for ruby | none | Text | G |
rt | Ruby annotation text | none | Phrasing | G |
ruby | Ruby annotation | flow, phrasing, palpable | Phrasing, rt and rp | G |
s | Text no longer accurate or relevant | flow, phrasing, palpable | Phrasing | G |
samp | Sample computer output | flow, phrasing, palpable | Phrasing | G |
script | A script | metadata, flow, phrasing, script-supporting | Raw text | G, src, type, nomodule, async, defer, crossorigin, integrity, referrerpolicy, blocking, fetchpriority |
search | A part of the page for searching | flow, palpable | Flow | G |
section | A generic section of a document | flow, sectioning, palpable | Flow | G |
select | A list of options to choose from | flow, phrasing, interactive, form (listed, labelable, submittable, resettable), palpable | option, optgroup, hr and script-supporting, or a button and customisable content | G, autocomplete, disabled, form, multiple, name, required, size |
selectedcontent | Mirrors the selected option inside a select | none | Nothing | G |
slot | A placeholder in a shadow tree | flow, phrasing, transparent | Transparent | G, name |
small | Side comments and fine print | flow, phrasing, palpable | Phrasing | G |
source | An alternative source for media or an image | none | Nothing (void) | G, type, media, src, srcset, sizes, width, height |
span | A generic inline container | flow, phrasing, palpable | Phrasing | G |
strong | Strong importance | flow, phrasing, palpable | Phrasing | G |
style | An embedded style sheet | metadata, flow where allowed | Raw text | G, media, blocking |
sub | Subscript | flow, phrasing, palpable | Phrasing | G |
summary | The label of a details element | none | Phrasing, or one heading | G |
sup | Superscript | flow, phrasing, palpable | Phrasing | G |
svg | Scalable vector graphics | flow, phrasing, embedded, palpable | Per the SVG specification | Per SVG |
table | A table | flow, palpable | caption, colgroup, thead, tbody and tr, tfoot, script-supporting | G |
tbody | A group of table rows | none | tr and script-supporting | G |
td | A table data cell | none | Flow | G, colspan, rowspan, headers |
template | Content that is not shown, for scripts or a shadow root | metadata, flow, phrasing, script-supporting | Nothing in the DOM; its contents are in a separate fragment | G, for, shadowrootmode, shadowrootdelegatesfocus, shadowrootserializable, shadowrootslotassignment, shadowrootclonable, shadowrootcustomelementregistry |
textarea | A multi-line text control | flow, phrasing, interactive, form (listed, labelable, submittable, resettable), palpable | Text | G, autocomplete, cols, dirname, disabled, form, maxlength, minlength, name, placeholder, readonly, required, rows, wrap |
tfoot | Table footer rows | none | tr and script-supporting | G |
th | A table header cell | interactive when it acts as a sortable header, flow | Flow, no header or footer, sectioning or heading | G, colspan, rowspan, headers, scope, abbr |
thead | Table header rows | none | tr and script-supporting | G |
time | A date or time | flow, phrasing, palpable | Phrasing | G, datetime |
title | The document’s title | metadata | Text | G |
tr | A table row | none | td, th and script-supporting | G |
track | Timed text for audio or video | none | Nothing (void) | G, default, kind, label, src, srclang |
u | Text with a non-textual annotation | flow, phrasing, palpable | Phrasing | G |
ul | An unordered list | flow, palpable | li and script-supporting | G |
var | A variable | flow, phrasing, palpable | Phrasing | G |
video | A video player | flow, phrasing, embedded, interactive, palpable | source and track, then transparent | G, src, crossorigin, poster, preload, autoplay, playsinline, loading, loop, muted, controls, width, height |
wbr | A line break opportunity | flow, phrasing | Nothing (void) | G |
Custom elements have a name containing a hyphen, written by the page author, and take the global attributes plus attributes of the author’s choosing.
Obsolete elements
Authors must not use these, but browsers still parse them, so they appear in real files. Several appear in the parser’s lists of void, raw text or formatting elements.
| Element | What it was | Use now |
|---|---|---|
acronym | An acronym | abbr |
applet | A Java applet | embed or object |
basefont | Base font settings (void) | CSS |
bgsound | Background sound in old Internet Explorer (void) | audio |
big | Larger text | CSS |
blink | Blinking text | CSS animation |
center | A centred block | CSS |
dir | A list of directories | ul |
font | Font settings | CSS |
frame | One frame of a frameset (void) | iframe |
frameset | A page made of frames, in place of body | iframe |
image | Not an element: the parser turns it into img | img |
isindex | A search prompt from early HTML; now an unknown element | form |
keygen | A key pair generator (void) | none |
listing | Preformatted text | pre |
marquee | Scrolling text | CSS |
menuitem | A command in a context menu | none |
multicol | Multiple columns, from Netscape | CSS |
nextid | A next-identifier from early HTML | none |
nobr | No line breaks | CSS |
noembed | Content for browsers without plugins | object |
noframes | Content for browsers without frames | none |
param | Parameters for an object (void) | none |
plaintext | The rest of the file is plain text | pre |
rb | A ruby base | ruby |
rtc | A ruby text container | rt |
spacer | Blank space, from Netscape | CSS |
strike | Strikethrough | del or s |
tt | Monospace text | code, kbd or samp |
xmp | Preformatted text | pre and code |