Information in the below tables was scraped from HTML elements reference page on Mozilla Developer Network (MDN) .
Element | Summary | Specification | Content categories | Permitted content | Tag omission | Permitted parents | Implicit ARIA role | Permitted ARIA roles | DOM interface | Events |
---|---|---|---|---|---|---|---|---|---|---|
a |
The Content within each |
HTML Standard # the-a-element |
Flow content, phrasing content, interactive content, palpable content. | Transparent, except that no descendant may be interactive content or an a element, and no descendant may have a specified tabindex attribute. | None, both the starting and ending tag are mandatory. |
Any element that accepts
phrasing content, or any element that accepts
flow content, but not other <a> elements.
|
link when href attribute is
present, otherwise
no corresponding role
|
When When
|
HTMLAnchorElement
|
|
abbr |
The When including an abbreviation or acronym, provide a full expansion of the term in plain text on first use, along with the The optional |
HTML Standard # the-abbr-element |
Flow content, phrasing content, palpable content | Phrasing content | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content | No corresponding role | Any |
HTMLElement
|
|
address |
The |
HTML Standard # the-address-element |
Flow content, palpable content. |
Flow content, but with no nested <address> element, no heading
content (<hgroup> , h1,
h2, h3,
h4, h5,
h6), no sectioning content
(<article> , <aside> ,
<section> , <nav> ), and
no <header> or <footer>
element.
|
None, both the starting and ending tag are mandatory. |
Any element that accepts
flow content, but always excluding <address> elements (according
to the logical principle of symmetry, if
<address> tag, as a parent, can not have nested
<address> element, then the same
<address> content can not have
<address> tag as its parent).
|
No corresponding role | Any |
HTMLElement Prior to Gecko 2.0 (Firefox 4),
Gecko implemented this element using the
HTMLSpanElement interface
|
|
area |
The This element is used only within a |
HTML Standard # the-area-element |
Flow content, phrasing content. | None; it is a void element. | Must have a start tag and must not have an end tag. |
Any element that accepts phrasing content. The <area> element must have an ancestor <map> , but it need not be a direct parent.
|
link when href attribute is present, otherwise no corresponding role
|
No role permitted
|
HTMLAreaElement
|
|
article |
The |
HTML Standard # the-article-element |
Flow content, sectioning content, palpable content | Flow content. | None, both the starting and ending tag are mandatory. |
Any element that accepts
flow content. Note that an <article> element must not be a
descendant of an <address> element.
|
article
|
application , document ,
feed , main ,
none , presentation ,
region
|
HTMLElement
|
|
aside |
The |
HTML Standard # the-aside-element |
Flow content, sectioning content, palpable content. | Flow content. | None, both the starting and ending tag are mandatory. |
Any element that accepts
flow content. Note that an <aside> element must not be a
descendant of an <address> element.
|
complementary
|
feed , none ,
note , presentation ,
region , search
|
HTMLElement
|
|
audio |
The |
HTML Standard # the-audio-element |
Flow content, phrasing content, embedded content. If it has a
controls attribute: interactive
content and palpable content.
|
If the element has a src
attribute: zero or more <track> elements
followed by transparent content that contains no
<audio> or <video>
media elements.Else: zero or more <source>
elements followed by zero or more <track>
elements followed by transparent content that contains no
<audio> or <video>
media elements.
|
None, both the starting and ending tag are mandatory. | Any element that accepts embedded content. | No corresponding role |
application
|
HTMLAudioElement
|
|
b |
The |
HTML Standard # the-b-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
base |
The A document's used base URL can be accessed by scripts with |
HTML Standard # the-base-element |
Metadata content. | None; it is a void element. | There must be no closing tag. |
A <head> that doesn't contain another <base> element.
|
No corresponding role |
No role permitted
|
HTMLBaseElement
|
|
bdi |
The |
HTML Standard # the-bdi-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
bdo |
The |
HTML Standard # the-bdo-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement Up to Gecko 1.9.2 (Firefox 4)
inclusive, Firefox implements the
HTMLSpanElement
interface for this element.
|
|
blockquote |
The |
HTML Standard # the-blockquote-element |
Flow content, sectioning root, palpable content. | Flow content. | None, both the starting and ending tag are mandatory. | Any element that accepts flow content. | No corresponding role | Any |
HTMLQuoteElement
|
|
body |
The |
HTML Standard # the-body-element |
None. | Flow content. |
The start tag may be omitted if the first thing inside it is not a space
character, comment, <script> element or
<style> element. The end tag may be omitted if
the <body> element has contents or has a start tag,
and is not immediately followed by a comment.
|
It must be the second element of an <html>
element.
|
generic
|
No role permitted
|
HTMLBodyElement
|
|
br |
The |
HTML Standard # the-br-element |
Flow content, phrasing content. | None; it is a void element. |
Must have a start tag, and must not have an end tag. In XHTML documents,
write this element as <br /> .
|
Any element that accepts phrasing content. | No corresponding role |
none , presentation
|
HTMLBRElement
|
|
button |
The By default, HTML buttons are presented in a style resembling the platform the user agent runs on, but you can change buttons' appearance with CSS. |
HTML Standard # the-button-element |
Flow content, phrasing content, Interactive content, listed, labelable, and submittable form-associated element, palpable content. | Phrasing content but there must be no Interactive content | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. |
button
|
checkbox , combobox ,
link , menuitem ,
menuitemcheckbox ,
menuitemradio , option ,
radio , switch ,
tab
|
HTMLButtonElement
|
|
canvas |
Use the HTML |
HTML Standard # the-canvas-element |
Flow content, phrasing content, embedded content, palpable content. |
Transparent but with no
interactive content
descendants except for <a> elements,
<button> elements,
<input> elements whose
type attribute is
checkbox , radio , or button .
|
None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLCanvasElement
|
|
caption |
The |
HTML Standard # the-caption-element |
None. | Flow content. | The end tag can be omitted if the element is not immediately followed by ASCII whitespace or a comment. |
A <table> element, as its first descendant.
|
caption |
No role permitted
|
HTMLTableCaptionElement
|
|
cite |
The |
HTML Standard # the-cite-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement Up to Gecko 1.9.2 (Firefox 4)
inclusive, Firefox implements the
HTMLSpanElement interface for this element.
|
|
code |
The |
HTML Standard # the-code-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement Up to Gecko 1.9.2 (Firefox 4)
inclusive, Firefox implements the
HTMLSpanElement interface for this element.
|
|
col |
The |
HTML Standard # the-col-element |
None. | None; it is a void element. | It must have start tag, but must not have an end tag. |
<colgroup> only, though it can be implicitly
defined as its start tag is not mandatory. The
<colgroup> must not have a
span attribute.
|
No corresponding role |
No role permitted
|
HTMLTableColElement
|
|
colgroup |
The |
HTML Standard # the-colgroup-element |
None. |
If the span attribute is
present: none.If the attribute is not present: zero or more <col>
element
|
The start tag may be omitted, if it has a <col>
element as its first child and if it is not preceded by a
<colgroup> whose end tag has been omitted.The end tag may be omitted, if it is not followed by a space or a comment. |
A <table> element. The
<colgroup> must appear after any optional
<caption> element but before any
<thead> , <th> ,
<tbody> , <tfoot> and
<tr> element.
|
No corresponding role |
No role permitted
|
HTMLTableColElement
|
|
data |
The |
HTML Standard # the-data-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLDataElement
|
|
datalist |
The |
HTML Standard # the-datalist-element |
Flow content, phrasing content. |
Either
phrasing content
or zero or more <option> elements.
|
None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | listbox |
No role permitted
|
HTMLDataListElement
|
|
dd |
The |
HTML Standard # the-dd-element |
None. | Flow content. |
The start tag is required. The end tag may be omitted if this element is
immediately followed by another <dd> element or a
<dt> element, or if there is no more content in
the parent element.
|
A <dl> or a
<div> that is a child of a
<dl> .This element can be used after a <dt> or another <dd>
element.
|
definition
|
No role permitted
|
HTMLElement
|
|
del |
The |
HTML Standard # the-del-element |
Phrasing content, flow content. | Transparent. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLModElement
|
|
details |
The A disclosure widget is typically presented onscreen using a small triangle which rotates (or twists) to indicate open/closed status, with a label next to the triangle. The contents of the |
HTML Standard # the-details-element |
Flow content, sectioning root, interactive content, palpable content. |
One <summary> element followed by
flow content.
|
None, both the starting and ending tag are mandatory. | Any element that accepts flow content. |
group
|
No role permitted
|
HTMLDetailsElement
|
|
dfn |
The |
HTML Standard # the-dfn-element |
Flow content, phrasing content, palpable content. |
Phrasing content,
but no <dfn> element must be a descendant.
|
None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. |
term
|
Any |
HTMLElement
|
|
dialog |
The The HTML JavaScript should be used to display the |
HTML Standard # the-dialog-element |
Flow content, sectioning root | Flow content | None, both the starting and ending tag are mandatory. | Any element that accepts flow content | dialog |
alertdialog
|
HTMLDialogElement
|
|
div |
The |
HTML Standard # the-div-element |
Flow content, palpable content. |
Flow content. Or (in WHATWG HTML): If the parent is a <dl> element: one or more
<dt> elements followed by one or more
<dd> elements, optionally intermixed with
<script> and
<template> elements.
|
None, both the starting and ending tag are mandatory. |
Any element that accepts
flow content. Or (in WHATWG HTML): <dl> element.
|
No corresponding role | Any |
HTMLDivElement
|
|
dl |
The |
HTML Standard # the-dl-element |
Flow content, and if the <dl> element's children include one
name-value group, palpable content.
|
Either: Zero or more groups each consisting of one or more
|
None, both the starting and ending tag are mandatory. | Any element that accepts flow content. | No corresponding role |
group ,
list , none , presentation
|
HTMLDListElement
|
|
dt |
The The subsequent |
HTML Standard # the-dt-element |
None. |
Flow content, but with no <header> ,
<footer> , sectioning content or heading content
descendants.
|
The start tag is required. The end tag may be omitted if this element is
immediately followed by another <dt> element or a
<dd> element, or if there is no more content in
the parent element.
|
A <dl> or (in WHATWG HTML,
W3C HTML 5.2 and later) a
<div> that is a child of a
<dl> .This element can be used before a <dd> or another <dt>
element.
|
term
|
listitem
|
HTMLElement Up to Gecko 1.9.2 (Firefox 4)
inclusive, Firefox implements the
HTMLSpanElement interface for this element.
|
|
em |
The |
HTML Standard # the-em-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement Up to Gecko 1.9.2 (Firefox 4)
inclusive, Firefox implements the
HTMLSpanElement interface for this element.
|
|
embed |
The |
HTML Standard # the-embed-element |
Flow content, phrasing content, embedded content, interactive content, palpable content. | None; it is a void element. | Must have a start tag, and must not have an end tag. | Any element that accepts embedded content. | No corresponding role |
application , document ,
img , none ,
presentation
|
HTMLEmbedElement
|
|
fieldset |
The |
HTML Standard # the-fieldset-element |
Flow content, sectioning root, listed, form-associated element, palpable content. |
An optional <legend> element, followed by flow
content.
|
None, both the starting and ending tag are mandatory. | Any element that accepts flow content. |
group
|
radiogroup ,
presentation , none
|
HTMLFieldSetElement
|
|
figcaption |
The |
HTML Standard # the-figcaption-element |
None. | Flow content. | None, both the starting and ending tag are mandatory. |
A <figure> element; the
<figcaption> element must be its first or last child.
|
No corresponding role |
group , none ,
presentation
|
HTMLElement
|
|
figure |
The |
HTML Standard # the-figure-element |
Flow content, palpable content. |
A <figcaption> element, followed by
flow content; or flow content followed by a
<figcaption> element; or flow content.
|
None, both the starting and ending tag are mandatory. | Any element that accepts Flow content. | figure | With no figcaption descendant: any, otherwise no permitted roles |
HTMLElement
|
|
footer |
The |
HTML Standard # the-footer-element |
Flow content, palpable content. |
Flow content, but with no <footer> or
<header> descendants.
|
None, both the starting and ending tag are mandatory. |
Any element that accepts
flow content. Note that a <footer> element must not be a
descendant of an <address> ,
<header> or another
<footer> element.
|
contentinfo, or
no corresponding role
if a descendant of an
article,
aside,
main,
nav or
section element, or
an element with
role=article ,
complementary,
main,
navigation
or
region
|
group , presentation or
none
|
HTMLElement
|
|
form |
The |
HTML Standard # the-form-element |
Flow content, palpable content |
Flow content, but not containing <form> elements
|
None, both the starting and ending tag are mandatory. | Any element that accepts flow content |
form if the form has an
accessible name, otherwise
no corresponding role
|
search ,
none
or presentation
|
HTMLFormElement
|
|
head |
The |
HTML Standard # the-head-element |
None. |
If the document is an
Otherwise, one or more elements of metadata content where exactly one
is a |
The start tag may be omitted if the first thing inside the
<head> element is an element.The end tag may be omitted if the first thing following the <head> element is not a space character or a comment.
|
An <html> element, as its first child.
|
No corresponding role |
No role permitted
|
HTMLHeadElement
|
|
header |
The |
HTML Standard # the-header-element |
Flow content, palpable content. |
Flow content, but with no <header> or
<footer> descendant.
|
None, both the starting and ending tag are mandatory. |
Any element that accepts
flow content. Note that a <header> element must not be a
descendant of an <address> ,
<footer> or another
<header> element.
|
banner, or
no corresponding role
if a descendant of an
article , aside , main , nav or
section
element, or an element with
role=article ,
complementary ,
main ,
navigation
or
region
|
group , presentation or
none
|
HTMLElement
|
|
heading_elements |
The |
HTML Standard # the-h1,-h2,-h3,-h4,-h5,-and-h6-elements |
Flow content, heading content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts flow content. | heading |
tab , presentation or
none
|
HTMLHeadingElement
|
|
hgroup |
The |
HTML Standard # the-hgroup-element |
Flow content, heading content, palpable content. |
Zero or more <p> elements, followed by one
h1, h2,
h3, h4,
h5, or h6 element,
followed by zero or more <p> elements.
|
None, both the starting and ending tag are mandatory. | Any element that accepts flow content. | No corresponding role | Any |
HTMLElement
|
|
hr |
The |
HTML Standard # the-hr-element |
Flow content. | None; it is a void element. | It must have start tag, but must not have an end tag. | Any element that accepts flow content. |
separator
|
presentation or none
|
HTMLHRElement
|
|
html |
The |
HTML Standard # the-html-element |
None. |
One <head> element, followed by one
<body> element.
|
The start tag may be omitted if the first thing inside the
<html> element is not a comment.The end tag may be omitted if the <html> element is not immediately
followed by a comment.
|
None. This is the root element of a document. | document |
No role permitted
|
HTMLHtmlElement
|
|
i |
The |
HTML Standard # the-i-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
iframe |
The |
HTML Standard # the-iframe-element |
Flow content, phrasing content, embedded content, interactive content, palpable content. | None. | None, both the starting and ending tag are mandatory. | Any element that accepts embedded content. | No corresponding role |
application , document ,
img , none ,
presentation
|
HTMLIFrameElement
|
|
img |
The |
HTML Standard # the-img-element |
Flow content,
phrasing content,
embedded content,
palpable content. If the element has a usemap attribute, it also is a part
of the interactive content category.
|
None; it is a void element. | Must have a start tag and must not have an end tag. | Any element that accepts embedded content. |
|
|
HTMLImageElement
|
|
input |
The |
HTML Standard # the-input-element |
Flow content, listed, submittable, resettable, form-associated element,
phrasing content. If the type is not
hidden , then labelable element, palpable content.
|
None; it is a void element. | Must have a start tag and must not have an end tag. | Any element that accepts phrasing content. |
|
|
HTMLInputElement
|
|
ins |
The |
HTML Standard # the-ins-element |
Phrasing content, flow content. | Transparent. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLModElement
|
|
kbd |
The |
HTML Standard # the-kbd-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
label |
The |
HTML Standard # the-label-element |
Flow content, phrasing content, interactive content, form-associated element, palpable content. |
Phrasing content, but no descendant label elements. No
labelable
elements other than the labeled control are allowed.
|
None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role |
No role permitted
|
HTMLLabelElement
|
|
legend |
The |
HTML Standard # the-legend-element |
None. | Phrasing content and headings (h1–h6 elements). | None, both the starting and ending tag are mandatory. |
A <fieldset> whose first child is this
<legend> element
|
No corresponding role |
No role permitted
|
HTMLLegendElement
|
|
li |
The |
HTML Standard # the-li-element |
None. | Flow content. |
The end tag can be omitted if the list item is immediately followed by
another <li> element, or if there is no more
content in its parent element.
|
An <ul> , <ol> , or
<menu> element. Though not a conforming usage,
the obsolete <dir> can also be a parent.
|
listitem
when child of an
ol , ul or
menu
|
menuitem ,
menuitemcheckbox ,
menuitemradio , option ,
none , presentation ,
radio , separator ,
tab , treeitem
|
HTMLLIElement
|
|
link |
The |
HTML Standard # the-link-element |
Metadata content.
If itemprop is present:
Flow content and
phrasing content.
|
None; it is a void element. | As it is a void element, the start tag must be present and the end tag must not be present | Any element that accepts metadata elements. If itemprop is present: any element that accepts phrasing content. |
link with href attribute
|
No role permitted
|
HTMLLinkElement
|
|
main |
The |
HTML Standard # the-main-element |
Flow content, palpable content. | Flow content. | None; both the starting and ending tags are mandatory. |
Where
flow content
is expected, but only if it is a
hierarchically correct main element.
|
main
|
No role permitted
|
HTMLElement
|
|
map |
The |
HTML Standard # the-map-element |
Flow content, phrasing content, palpable content. | Any transparent element. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role |
No role permitted
|
HTMLMapElement
|
|
mark |
The |
HTML Standard # the-mark-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
menu |
The |
HTML Standard # the-menu-element |
Flow content. If the element's children include at least one
|
Zero or more occurrences of |
None, both the starting and ending tag are mandatory. | Any element that accepts flow content. |
list
|
directory , group ,
listbox , menu , menubar ,
none , presentation ,
radiogroup , tablist ,
toolbar or tree
|
HTMLMenuElement
|
|
meta |
The |
HTML Standard # the-meta-element |
Metadata content. If the itemprop attribute is present:
flow content,
phrasing content.
|
None; it is a void element. | As it is a void element, the start tag must be present and the end tag must not be present. |
|
No corresponding role |
No role permitted
|
HTMLMetaElement
|
|
meter |
The |
HTML Standard # the-meter-element |
Flow content, phrasing content, labelable content, palpable content. |
Phrasing content, but there must be no <meter> element among its
descendants.
|
None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role |
No role permitted
|
HTMLMeterElement
|
|
nav |
The |
HTML Standard # the-nav-element |
Flow content, sectioning content, palpable content. | Flow content. | None, both the starting and ending tag are mandatory. | Any element that accepts flow content. |
navigation
|
No role permitted
|
HTMLElement
|
|
noscript |
The |
HTML Standard # the-noscript-element |
Metadata content, flow content, phrasing content. |
When scripting is disabled and when it is a descendant of the
<head> element: in any order, zero or more
<link> elements, zero or more
<style> elements, and zero or more
<meta> elements.When scripting is disabled and when it isn't a descendant of the <head> element: any
transparent content, but no <noscript> element must be among its
descendants.Otherwise: flow content or phrasing content. |
None, both the starting and ending tag are mandatory. |
Any element that accepts
phrasing content, if there are no ancestor <noscript> element, or in
a <head> element (but only for an HTML
document), here again if there are no ancestor
<noscript> element.
|
No corresponding role |
No role permitted
|
HTMLElement
|
|
object |
The |
HTML Standard # the-object-element |
Flow content;
phrasing content;
embedded content, palpable content; if the element has a
usemap attribute, interactive content;
listed,
submittable
form-associated element.
|
zero or more <param> elements, then
transparent.
|
None, both the starting and ending tag are mandatory. | Any element that accepts embedded content. | No corresponding role |
application , document , img
|
HTMLObjectElement
|
|
ol |
The |
HTML Standard # the-ol-element |
Flow content, and if the <ol> element's children include at least
one <li> element,
palpable content.
|
Zero or more <li> ,
<script> and
<template> elements.
|
None, both the starting and ending tag are mandatory. | Any element that accepts flow content. |
list
|
directory , group ,
listbox , menu ,
menubar , none ,
presentation ,
radiogroup , tablist ,
toolbar , tree
|
HTMLOListElement
|
|
optgroup |
The |
HTML Standard # the-optgroup-element |
None. |
Zero or more <option> elements.
|
The start tag is mandatory. The end tag is optional if this element is
immediately followed by another <optgroup> element, or
if the parent element has no more content.
|
A <select> element.
|
group
|
No role permitted
|
HTMLOptGroupElement
|
|
option |
The |
HTML Standard # the-option-element |
None. |
Text, possibly with escaped characters (like
é ).
|
The start tag is mandatory. The end tag is optional if this element is
immediately followed by another <option> element or an
<optgroup> , or if the parent element has no
more content.
|
A <select> , an
<optgroup> or a
<datalist> element.
|
option
|
No role permitted
|
HTMLOptionElement
|
|
output |
The |
HTML Standard # the-output-element |
Flow content, phrasing content, listed, labelable, resettable form-associated element, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. |
status
|
Any |
HTMLOutputElement
|
|
p |
The Paragraphs are block-level elements, and notably will automatically close if another block-level element is parsed before the closing |
HTML Standard # the-p-element |
Flow content, palpable content. | Phrasing content. |
The start tag is required. The end tag may be omitted if the
<p> element is immediately followed by an
<address> ,
<article> , <aside> ,
<blockquote> , <div> ,
<dl> , <fieldset> ,
<footer> , <form> ,
h1, h2,
h3, h4,
h5, h6,
<header> , <hr> ,
<menu> , <nav> ,
<ol> , <pre> ,
<section> , <table> ,
<ul> or another <p>
element, or if there is no more content in the parent element and the
parent element is not an <a> element.
|
Any element that accepts flow content. | paragraph | Any |
HTMLParagraphElement
|
|
picture |
The The browser will consider each child |
HTML Standard # the-picture-element |
Flow content, phrasing content, embedded content |
Zero or more <source> elements, followed by one
<img> element, optionally intermixed with
script-supporting elements.
|
None, both the starting and ending tag are mandatory. | Any element that allows embedded content. | No corresponding role |
No role permitted
|
HTMLPictureElement
|
|
portal |
Experimental: This is an experimental technology |
Portals # the-portal-element |
button |
HTMLPortalElement
|
||||||
pre |
The |
HTML Standard # the-pre-element |
Flow content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts flow content. | No corresponding role | Any |
HTMLPreElement
|
|
progress |
The |
HTML Standard # the-progress-element |
Flow content, phrasing content, labelable content, palpable content. |
Phrasing content, but there must be no <progress> element among its
descendants.
|
None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. |
progressbar
|
No role permitted
|
HTMLProgressElement
|
|
q |
The |
HTML Standard # the-q-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLQuoteElement
|
|
rp |
The |
HTML Standard # the-rp-element |
None. | Text |
The end tag can be omitted if the element is immediately followed by an
<rt> or another <rp> element,
or if there is no more content in the parent element.
|
A <ruby> element. <rp> must
be positioned immediately before or after an
<rt> element.
|
No corresponding role | Any |
HTMLElement
|
|
rt |
The |
HTML Standard # the-rt-element |
None. | Phrasing content. |
The end tag may be omitted if the <rt> element is
immediately followed by an <rt> or
<rp> element, or if there is no more content in
the parent element
|
A <ruby> element.
|
No corresponding role | Any |
HTMLElement
|
|
ruby |
The The term ruby originated as a unit of measurement used by typesetters, representing the smallest size that text can be printed on newsprint while remaining legible. |
HTML Standard # the-ruby-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
s |
The |
HTML Standard # the-s-element |
Phrasing content, flow content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
samp |
The |
HTML Standard # the-samp-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
script |
The |
HTML Standard # the-script-element |
Metadata content, Flow content, Phrasing content. |
Dynamic script such as text/javascript .
|
None, both the starting and ending tag are mandatory. | Any element that accepts metadata content, or any element that accepts phrasing content. | No corresponding role |
No role permitted
|
HTMLScriptElement
|
|
search |
The |
HTML Standard # the-search-element |
Flow content, palpable content. | Flow content. | None, both the starting and ending tag are mandatory. |
search
|
form , group , none , presentation , region , search
|
HTMLElement
|
||
section |
The |
HTML Standard # the-section-element |
Flow content, Sectioning content, palpable content. | Flow content. | None, both the starting and ending tag are mandatory. |
Any element that accepts
flow content. Note that a <section> element must not be a
descendant of an <address> element.
|
region
if the element has an
accessible name, otherwise
no corresponding role
|
alert , alertdialog ,
application , banner ,
complementary ,
contentinfo , dialog ,
document , feed ,
log , main ,
marquee , navigation ,
none , note ,
presentation , search ,
status , tabpanel
|
HTMLElement
|
|
select |
The |
HTML Standard # the-select-element |
Flow content, phrasing content, interactive content, listed, labelable, resettable, and submittable form-associated element |
Zero or more <option> or
<optgroup> elements.
|
None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. |
combobox with no
multiple attribute and no
size attribute greater than 1, otherwise
listbox
|
menu with no
multiple attribute and no
size attribute greater than 1, otherwise no
role permitted
|
HTMLSelectElement
|
|
slot |
The |
HTML Standard # the-slot-element |
Flow content, phrasing content | Transparent | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content | No corresponding role |
No role permitted
|
HTMLSlotElement
|
slotchange
|
small |
The |
HTML Standard # the-small-element |
Flow content, phrasing content | Phrasing content | None; must have both a start tag and an end tag. | Any element that accepts phrasing content, or any element that accepts flow content. | No corresponding role | Any |
HTMLElement
|
|
source |
The |
HTML Standard # the-source-element |
None. | None; it is a void element. | It must have a start tag, but must not have an end tag. |
A media element—
<audio> or
<video> —and it must be placed before any
flow content
or <track> element.
|
No corresponding role |
No role permitted
|
HTMLSourceElement
|
|
span |
The |
HTML Standard # the-span-element |
Flow content, phrasing content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content, or any element that accepts flow content. | No corresponding role | Any |
HTMLSpanElement
|
|
strong |
The |
HTML Standard # the-strong-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None; must have both a start tag and an end tag. | Any element that accepts phrasing content, or any element that accepts flow content. | No corresponding role | Any |
HTMLElement
|
|
style |
The |
HTML Standard # the-style-element |
Metadata content, and if the scoped attribute is present:
flow content.
|
Text content matching the type attribute, that is
text/css .
|
Neither tag is omissible. | Any element that accepts metadata content. | No corresponding role |
No role permitted
|
HTMLStyleElement
|
|
sub |
The |
HTML Standard # the-sub-and-sup-elements |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
summary |
The |
HTML Standard # the-summary-element |
Phrasing content or one element of Heading content | None; both the start tag and the end tag are mandatory. |
The <details> element.
|
button
|
No role permitted
|
HTMLElement
|
||
sup |
The |
HTML Standard # the-sub-and-sup-elements |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
table |
The |
HTML Standard # the-table-element |
Flow content | In this order: | None, both the starting and ending tag are mandatory. | Any element that accepts flow content |
table
|
Any |
HTMLTableElement
|
|
tbody |
The |
HTML Standard # the-tbody-element |
None. |
Zero or more <tr> elements.
|
A <tbody> element's start tag can be omitted if the first thing inside the <tbody> element is a <tr> element, and if the element is not immediately preceded by a <tbody> , <thead> , or <tfoot> element whose end tag has been omitted. (It can't be omitted if the element is empty.)
A <tbody> element's end tag can be omitted if the <tbody> element is immediately followed by a <tbody> or <tfoot> element, or if there is no more content in the parent element.
|
Within the required parent <table> element,
the <tbody> element can be added after a
<caption> ,
<colgroup> , and a
<thead> element.
|
rowgroup
|
Any |
HTMLTableSectionElement
|
|
td |
The |
HTML Standard # the-td-element |
Sectioning root. | Flow content. |
The start tag is mandatory. The end tag may be omitted, if it is immediately followed by a <th> or
<td> element or if there are no more data in its
parent element.
|
A <tr> element.
|
cell
if a descendant of a <table> element
|
Any |
HTMLTableCellElement
|
|
template |
The Think of a template as a content fragment that is being stored for subsequent use in the document. While the parser does process the contents of the |
HTML Standard # the-template-element |
Metadata content, flow content, phrasing content, script-supporting element | No restrictions | None, both the starting and ending tag are mandatory. |
Any element that accepts
metadata content,
phrasing content, or
script-supporting elements. Also allowed as a child of a <colgroup>
element that does not have a
span attribute.
|
No corresponding role |
No role permitted
|
HTMLTemplateElement
|
|
textarea |
The |
HTML Standard # the-textarea-element |
Flow content, phrasing content, Interactive content, listed, labelable, resettable, and submittable form-associated element. | Text | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. |
textbox
|
No role permitted
|
HTMLTextAreaElement
|
|
tfoot |
The |
HTML Standard # the-tfoot-element |
None. |
Zero or more <tr> elements.
|
The start tag is mandatory. The end tag may be omitted if there is no
more content in the parent <table> element.
|
A <table> element. The
<tfoot> must appear after any
<caption> ,
<colgroup> , <thead> ,
<tbody> , or <tr>
element. Note that this is the requirement in HTML.Originally, in HTML4, the opposite was true: the <tfoot> element could not be placed after any
<tbody> or <tr>
element.
|
rowgroup
|
Any |
HTMLTableSectionElement
|
|
th |
The |
HTML Standard # the-th-element |
None. | Flow content, but with no header, footer, sectioning content, or heading content descendants. |
The start tag is mandatory. The end tag may be omitted, if it is immediately followed by a <th> or
<td> element or if there are no more data in its
parent element.
|
A <tr> element.
|
columnheader or rowheader
|
Any |
HTMLTableCellElement
|
|
thead |
The |
HTML Standard # the-thead-element |
None. |
Zero or more <tr> elements.
|
The start tag is mandatory. The end tag may be omitted if the
<thead> element is immediately followed by a
<tbody> or <tfoot>
element.
|
A <table> element. The
<thead> must appear after any
<caption> or
<colgroup> element, even implicitly defined,
but before any <tbody> ,
<tfoot> and <tr>
element.
|
rowgroup
|
Any |
HTMLTableSectionElement
|
|
time |
The It may represent one of the following: |
HTML Standard # the-time-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLTimeElement
|
|
title |
The |
HTML Standard # the-title-element |
Metadata content. | Text that is not inter-element whitespace. |
Both opening and closing tags are required. Note that leaving off
</title> should cause the browser to ignore the rest
of the page.
|
A <head> element that contains no other
<title> element.
|
No corresponding role |
No role permitted.
|
HTMLTitleElement
|
|
tr |
The |
HTML Standard # the-tr-element |
None |
Zero or more <td> and/or
<th> elements;
script-supporting elements
(<script> and
<template> ) are also allowed
|
Start tag is mandatory. End tag may be omitted if the
<tr> element is immediately followed by a
<tr> element, or if the row is the last element
in its parent table group (<thead> ,
<tbody> or <tfoot> )
element
|
<table> (only if the table has no child
<tbody> element, and even then only after any
<caption> ,
<colgroup> , and
<thead> elements); otherwise, the parent must
be <thead> , <tbody> or
<tfoot>
|
row
|
Any |
HTMLTableRowElement
|
|
track |
The |
HTML Standard # the-track-element |
None | None; it is a void element. | As it is a void element, the start tag must be present and the end tag must not be present. | No corresponding role |
No role permitted
|
HTMLTrackElement
|
||
u |
The |
HTML Standard # the-u-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
ul |
The |
HTML Standard # the-ul-element |
Flow content, and if the <ul> element's children include at least
one <li> element,
palpable content.
|
Zero or more <li> ,
<script> and
<template> elements.
|
None, both the starting and ending tag are mandatory. | Any element that accepts flow content. |
list
|
directory , group ,
listbox , menu ,
menubar , none ,
presentation ,
radiogroup , tablist ,
toolbar , tree
|
HTMLUListElement
|
|
var |
The |
HTML Standard # the-var-element |
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
|
video |
The |
HTML Standard # the-video-element |
Flow content, phrasing content, embedded content. If it has a
controls attribute: interactive
content and palpable content.
|
If the element has a
Else: zero or more |
None, both the starting and ending tag are mandatory. | Any element that accepts embedded content. | No corresponding role |
application
|
HTMLVideoElement
|
|
wbr |
The |
HTML Standard # the-wbr-element |
Flow content, phrasing content. | Empty | It is a void element; it must have a start tag, but must not have an end tag. | Any element that accepts phrasing content. | No corresponding role | Any |
HTMLElement
|
Element | Summary | Specification | DOM interface | Content categories | Permitted content | Tag omission | Permitted parents | Permitted ARIA roles | Implicit ARIA role |
---|---|---|---|---|---|---|---|---|---|
acronym |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # acronym |
|||||||
big |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # big |
|||||||
center |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # center |
|||||||
dir |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
||||||||
font |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # font |
|||||||
frame |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # frame |
|||||||
frameset |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # frameset |
|||||||
image |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
||||||||
marquee |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # the-marquee-element-2 |
HTMLMarqueeElement
|
||||||
menuitem |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTMLMenuItemElement
|
None. | None; it is a void element. | Must have a start tag and must not have an end tag. |
The <menu> element, where that element is in
the popup menu state. (If specified, the
type attribute of the <menu>
element must be popup ; if missing, the parent element of
the <menu> must itself be a
<menu> in the popup menu state.)
|
None | ||
nobr |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # nobr |
|||||||
noembed |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # noembed |
|||||||
noframes |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # noframes |
|||||||
param |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # the-param-element |
HTMLParamElement
|
None. | None; it is a void element. | As it is a void element, the start tag must be present and the end tag must not be present. |
An <object> before any
flow content.
|
No role permitted
|
No corresponding role |
plaintext |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # plaintext |
|||||||
rb |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # rb |
HTMLElement
|
None. |
As a child of a <ruby> element.
|
The end tag can be omitted if the element is immediately followed by an
<rt> , <rtc> , or
<rp> element or another
<rb> element, or if there is no more content in the
parent element.
|
A <ruby> element.
|
Any | |
rtc |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # rtc |
HTMLElement
|
None. |
Phrasing content
or <rt> elements.
|
The closing tag can be omitted if it is immediately followed by a
<rb> , <rtc> or
<rt> element opening tag or by its parent
closing tag.
|
A <ruby> element.
|
Any | |
strike |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # strike |
HTMLElement
|
||||||
tt |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # tt |
HTMLElement
|
Flow content, phrasing content, palpable content. | Phrasing content. | None, both the starting and ending tag are mandatory. | Any element that accepts phrasing content. | Any | |
xmp |
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. |
HTML Standard # xmp |