Living Standard — Last Updated 12 December 2024
One-Page Version html.spec.whatwg.org
Multipage Version /multipage Version for Web
Devs /dev PDF Version
/print.pdf
Translations 日本語 • 简体中文
FAQ on GitHub Chat
on Matrix Contribute on GitHub
whatwg/html repository Commits
on GitHub
Snapshot as of this commit Twitter
Updates @htmlstandard Open
Issues filed on GitHub Open an
Issue whatwg.org/newbug Tests
web-platform-tests html/ Issues
for Tests ongoing work
innerText and
outerText properties body element article element section element nav element aside element h1 ,
h2 , h3 , h4 , h5 , and h6 elements
hgroup element header element footer element address element p element hr element pre element blockquote element ol element ul element menu element li element dl element dt element dd element figure element figcaption element main element search element div element a element em element strong element small element s element cite element q element dfn element abbr element ruby element rt element rp element data element time element code element var element samp element kbd element sub and sup elements
i element b element u element mark element bdi element bdo element span element br element wbr element a and
area elements a and area elements
alternate "
author "
bookmark "
canonical "
dns-prefetch "
expect "
external "
help " icon " license "
manifest "
modulepreload " nofollow "
noopener "
noreferrer "
opener "
pingback "
preconnect "
prefetch "
preload "
privacy-policy " search "
stylesheet "
tag "
terms-of-service " picture element source element img element source , img , and link elements
iframe element embed element object element video element audio element track element TrackEvent interface
map element area element table element
caption element colgroup element col element tbody element thead element tfoot element tr element td element th element
td and th elements form element label element input element
type attribute
type=hidden ) type=text ) state and Search state (
type=search )
type=tel ) type=url )
type=email )
type=password )
type=date )
type=month )
type=week )
type=time ) type=datetime-local )
type=number )
type=range )
type=color )
type=checkbox ) type=radio )
type=file ) type=submit ) type=image ) type=reset )
type=button ) input element
attributes
maxlength and minlength attributes size attribute
readonly attribute
required attribute
multiple attribute
pattern attribute
min and
max attributes step attribute
list attribute
placeholder attribute
input element APIs
button element select element datalist element optgroup element option element textarea element output element progress element meter element fieldset element legend element name attribute dirname attribute maxlength attribute minlength attribute
disabled attribute SubmitEvent interface
FormDataEvent interface
details element summary element a element
to define a command
button element to define a command
input element to define a command
option element to define a command accesskey attribute
on a legend element to define a command accesskey attribute to define a command on other elements
dialog element script element
noscript element template element
slot element canvas element
Path2D objects ImageBitmap rendering
context
OffscreenCanvas interface
canvas elements
CustomElementRegistry interface
hidden attribute
contenteditable content attribute designMode getter and setter
inputmode attribute
enterkeyhint attribute popover attribute
Window ,
WindowProxy , and Location objects
Window object
WindowProxy exotic object
Location interface
History interface Navigation interface
NavigationHistoryEntry interface
NavigationActivation interface navigate event
NotRestoredReasons interface
multipart/x-mixed-replace documents X-Frame-Options ` header Refresh ` header WindowOrWorkerGlobalScope mixin
button element details and
summary elements input element as a
text entry widget input element
as domain-specific widgets input element as a
range control input element as a color
well
input element as a checkbox and radio button widgets input element
as a file upload control input element as a button
marquee element meter element progress element select element textarea element This specification defines a big part of the web platform, in lots of detail. Its place in the web platform specification stack relative to other specifications can be best summed up as follows:
This section is non-normative.
In short: Yes.
In more length: the term "HTML5" is widely used as a buzzword to refer to modern web technologies, many of which (though by no means all) are developed at the WHATWG. This document is one such; others are available from the WHATWG Standards overview .
This section is non-normative.
HTML is the World Wide Web's core markup language. Originally, HTML was primarily designed as a language for semantically describing scientific documents. Its general design, however, has enabled it to be adapted, over the subsequent years, to describe a number of other types of documents and even applications.
This section is non-normative.
This specification is intended for authors of documents and scripts that use the features defined in this specification, implementers of tools that operate on pages that use the features defined in this specification, and individuals wishing to establish the correctness of documents or implementations with respect to the requirements of this specification.
This document is probably not suited to readers who do not already have at least a passing familiarity with web technologies, as in places it sacrifices clarity for precision, and brevity for completeness. More approachable tutorials and authoring guides can provide a gentler introduction to the topic.
In particular, familiarity with the basics of DOM is necessary for a complete understanding of some of the more technical parts of this specification. An understanding of Web IDL, HTTP, XML, Unicode, character encodings, JavaScript, and CSS will also be helpful in places but is not essential.
This section is non-normative.
This specification is limited to providing a semantic-level markup language and associated semantic-level scripting APIs for authoring accessible pages on the web ranging from static documents to dynamic applications.
The scope of this specification does not include providing mechanisms for media-specific customization of presentation (although default rendering rules for web browsers are included at the end of this specification, and several mechanisms for hooking into CSS are provided as part of the language).
The scope of this specification is not to describe an entire operating system. In particular, hardware configuration software, image manipulation tools, and applications that users would be expected to use with high-end workstations on a daily basis are out of scope. In terms of applications, this specification is targeted specifically at applications that would be expected to be used by users on an occasional basis, or regularly but from disparate locations, with low CPU requirements. Examples of such applications include online purchasing systems, searching systems, games (especially multiplayer online games), public telephone books or address books, communications software (email clients, instant messaging clients, discussion software), document editing software, etc.
This section is non-normative.
For its first five years (1990-1995), HTML went through a number of revisions and experienced a