Permitted content #
zero or more style elements, followed by flow content
The content of this document is also available as multiple HTML files.
Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
This document describes the HTML language and provides details necessary for producers of HTML content to create documents that conform to the language. By design, it does not define related APIs nor attempt to specify how consumers of HTML content are meant to process documents.
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This document is the 8 February 2010 Editor’s Draft of
HTML: The Markup Language.
If you’d like to comment on this document, the preferred
means for commenting is to submit your comments through the
HTML Working Group bugzilla database
with the Component field set to HTML5: The Markup Language.
Alternatively, you can send comments by e-mail to
public-html-comments@w3.org
(archived).
This document is associated with the W3C HTML Working Group. part of the HTML Activity in the W3C Interaction Domain.
This non-normative document is intended to complement the normative conformance criteria defined in the specification HTML5: A vocabulary and associated APIs for HTML and XHTML, and is similar in scope to the HTML5 (Author Edition) subset of that specification.
This document is a working draft — all parts of it remain subject to significant change or removal, and some parts are currently incomplete; in particular, many elements currently lack complete documentation in the following subsections:
The existence of this document as an Editor’s Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This specification provides the details necessary for producers of HTML content to create conformant documents, and for others to check the conformance of existing documents. It is designed:
Certain purposes are intentionally out of scope for this specification; in particular, it:
The following is a list of terms that are used in other sections of this specification.
A-Z
and the corresponding characters in the range
a-z
are considered to also match.This section defines the term document, and provides additional details related to the definition of that term. It is divided into the following parts:
The term document is used in this specification to mean an instance of the HTML language.
The HTML language is the language described in this specification; it is an abstract language that applications can potentially represent in memory in any number of possible ways, and that can be transmitted using any number of possible concrete syntaxes.
This specification makes reference to two particular concrete syntaxes for the HTML language: One syntax which is referred to throughout this specification as the HTML syntax, and another syntax, which is referred to throughout this specification as the XML syntax. Web browsers typically implement two separate parsers for processing documents: an HTML parser which is invoked when processing documents in the HTML syntax, and an XML parser which is invoked when processing documents in the XML syntax.
The HTML syntax is the syntax described in the HTML syntax section of this specification.
The XML syntax is defined by rules in the XML specification [XML] and in the Namespaces in XML 1.0 specification [XMLNS]. Beyond the requirements defined in those specifications, this specification does not define any additional syntax-level requirements for documents in the XML syntax.
The
HTML namespace
is defined as http://www.w3.org/1999/xhtml.
The HTML namespace is the
namespace both for
documents in the HTML syntax
and for
documents in the XML syntax.
Documents that are served with the
text/html MIME type must conform to the rules in this
specification for
documents in the HTML syntax.
Documents that have an
HTML namespace
declaration and that are served with an XML MIME type
such as
text/xml,
application/xml, or
application/xhtml+xml
must conform to the rules in this specification for
documents in the XML syntax.
A conformant document in the HTML syntax must consist of the following parts, in the following order:
Documents in the HTML syntax must conform to the syntax described in the HTML syntax section of this specification.
A conformant document in the XML syntax must consist of the following parts, in the following order:
Documents in the XML syntax must conform to XML constraints as defined in the XML specification [XML] and in the Namespaces in XML 1.0 specification [XMLNS] — including XML well-formedness constraints — and must not make use of any features of the HTML syntax that do not follow XML well-formedness constraints (for example, documents in the XML syntax must not use unquoted attribute value syntax and must not omit tags).
In documents in the HTML syntax:
In documents in the XML syntax:
This section describes the the HTML syntax in detail. In places, it also notes differences between the the HTML syntax and the XML syntax, but it does not describe the XML syntax in detail (the XML syntax is instead defined by rules in the XML specification [XML] and in the Namespaces in XML 1.0 specification [XMLNS]).
This section is divided into the following parts:
A doctype (sometimes capitalized as “DOCTYPE”) is an special instruction which, for legacy reasons that have to do with processing modes in browsers, is a required part of any document in the HTML syntax; it must either be a deprecated doctype, or must consist of the following parts, in exactly the following order:
<"
character.!"
character.DOCTYPE".HTML".>"
character.A doctype legacy string consists of the following parts, in exactly the following order.
SYSTEM".""
character or a
"'"
character.about:legacy-compat".""
character or a
"'"
character).The following are examples of some conformant doctypes.
<!DOCTYPE html>
<!doctype HTML system "about:legacy-compat">
A deprecated doctype is a document type declaration as defined in the XML specification [XML], with the further restriction that it must meet one of the following sets of constraints:
HTML",
its public identifier is an exact match for the literal string
"-//W3C//DTD HTML 4.0//EN",
and its system identifier is either missing or is an exact
match for the literal string
"http://www.w3.org/TR/REC-html40/strict.dtd".HTML",
its public identifier is an exact match for the literal string
"-//W3C//DTD HTML 4.01//EN",
and its system identifier is either missing or is an exact
match for the literal string
"http://www.w3.org/TR/html4/strict.dtd".HTML",
its public identifier is an exact match for the literal string
"-//W3C//DTD XHTML 1.0 Strict//EN",
and its system identifier is either missing or is an exact
match for the literal string
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd".HTML",
its public identifier is an exact match for the literal string
"-//W3C//DTD XHTML 1.1//EN",
and its system identifier is either missing or is an exact
match for the literal string
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd".The following are examples of some deprecated doctypes.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
A character encoding declaration is a mechanism for specifying the character encoding used to store or transmit a document.
The following restrictions apply to character encoding declarations:
If the document does not start with a
U+FEFF BYTE ORDER MARK (BOM) character, and if its
encoding is not explicitly given by a
Content-Type HTTP header, then the character
encoding used must be an
ASCII-compatible character encoding,
and, in addition, if that encoding isn't US-ASCII itself, then
the encoding must be specified using a
meta element with a
charset
attribute or a meta element
in the
encoding declaration
state.
If the document contains a meta
element with a
charset
attribute or a meta element in the
encoding declaration state,
then the character encoding used must be an
ASCII-compatible character encoding.
An ASCII-compatible character encoding is one that is a superset of US-ASCII (specifically, ANSI_X3.4-1968) for bytes in the set 0x09, 0x0A, 0x0C, 0x0D, 0x20 - 0x22, 0x26, 0x27, 0x2C - 0x3F, 0x41 - 0x5A, and 0x61 - 0x7A.
Documents must not use the CESU-8, UTF-7, BOCU-1 and SCSU encodings. [CESU8] [UTF7] [BOCU1] [SCSU]
In a document in the XML syntax, the XML declaration, as defined in the XML specification [XML] should be used to provide character-encoding information, if necessary.
An element’s content model defines the element’s structure: What contents (if any) the element can contain, as well as what attributes (if any) the element can have. The HTML elements section of this specification defines the content models for all of elements that are part of the HTML language. An element must not contain contents or attributes that are not part of its content model.
The contents of an element are any elements, character data, and comments that it contains. Attributes and their values are not considered to be the “contents” of an element.
A void element is an element whose content model does not allow it to have contents. Void elements can have attributes.
The following is a complete list of the void elements in HTML:
The following list describes syntax rules for the the HTML syntax. Rules for the the XML syntax are defined in the XML specification [XML].
0–9,
a–z,
and
A–Z.<"
character./"
character, which may be present only if the element is a
void element.>"
character.<"
character./"
character>"
character.If an element has both a start tag and an end tag, its end tag must be contained within the contents of the same element in which its start tag is contained. An end tag that is not contained within the same contents as its start tag is said to be a misnested tag.
In the following example, the
"</i>"
end tag
is a
misnested tag,
because it is not contained
within the
contents
of the
b
element that contains its corresponding
"<i>"
start tag.
<b>foo <i>bar</b> baz</i>
Attributes for an element are expressed inside the element’s start tag. Attributes have a name and a value.
There must never be two or more attributes on the same start tag whose names are a case-insensitive match for each other.
The following list describes syntax rules for attributes in documents in the HTML syntax. Syntax rules for attributes in documents in the XML syntax. are defined in the XML specification [XML].
"",
"'",
">",
"/",
"=",
the control characters,
and any characters that are not defined by Unicode.Name production defined in
the XML specification [XML]
and that contain no
":"
characters, and whose first three characters are not a
case-insensitive match
for the string "xml".In the the HTML syntax, attributes can be specified in four different ways:
Certain attributes may be specified by providing just the attribute name.
In the following example, the
disabled
attribute is given with the empty attribute
syntax:
<input disabled>
An unquoted attribute value is specified by providing the following parts in exactly the following order:
="
characterIn addition to the general requirements given above for attribute values, an unquoted attribute value has the following restrictions:
"",
"'",
">",
"=",
charactersIn the following example, the
value
attribute is given with the unquoted attribute value
syntax:
<input value=yes>
If the value of an attribute using the unquoted
attribute syntax is followed by a
"/"
character, then there must be at least one
space character
after the value and before the
"/"
character.
A single-quoted attribute value is specified by providing the following parts in exactly the following order:
="
character'"
character'"
character.In addition to the general requirements given above for attribute values, a single-quoted attribute value has the following restriction:
'"
charactersIn the following example, the
type attribute
is given with the single-quoted attribute value
syntax:
<input type='checkbox'>
A double-quoted attribute value is specified by providing the following parts in exactly the following order:
="
character""
character""
characterIn addition to the general requirements given above for attribute values, a double-quoted attribute value has the following restriction:
""
charactersIn the following example, the
title attribute is
given with the double-quoted attribute value syntax:
<code title="U+003C LESS-THAN SIGN"><</code>
Text in element contents (including in comments) and attribute values must consist of Unicode characters, with the following restrictions:
Character data contains text, in some cases in combination with character references, along with certain additional restrictions. There are three types of character data that can occur in documents:
Certain elements and strings in the values of particular attributes contain normal character data. Normal character data can contain the following:
Normal character data has the following restrictions:
<"
charactersIn documents in the HTML syntax, the title and textarea elements can contain replaceable character data. Replaceable character data can contain the following:
<"
characters
Replaceable character data has the following restrictions:
</"
followed by characters that are a
case-insensitive match
for the tag name of the element containing the
replaceable character data (for example,
"</title" or
"</textarea"),
followed by a
space character,
">",
or
"/".Replaceable character data, as defined in this specification, is a feature of the HTML syntax that is not available in the XML syntax. Documents in the XML syntax must not contain replaceable character data as defined in this specification; instead they must conform to all syntax constraints defined in the XML specification [XML].
In documents in the HTML syntax, the script, and style elements can contain non-replaceable character data. Non-replaceable character data can contain the following:
<"
characters
Non-replaceable character data has the following restrictions:
</",
followed by characters that are a
case-insensitive match
for the tag name of the element containing the
replaceable character data (for example,
"</script"
or
"</style",
followed by a
space character,
">",
or
"/".Non-replaceable character data, as defined in this specification, is a feature of the HTML syntax that is not available in the XML syntax. Documents in the XML syntax must not contain non-replaceable character data as defined in this specification; instead they must conform to all syntax constraints defined in the XML specification [XML].
Character references are a form of markup for representing single individual characters. There are three types of character references:
Named character references consist of the following parts in exactly the following order:
&"
character.;"
character.The following is an example of a named character
reference for the character
"†"
(U+2020 DAGGER).
†
Decimal numerical character references consist of the following parts, in exactly the following order.
&"
character.#"
character.0–9,
representing a base-ten integer that itself is a Unicode
code point that is not
U+0000,
U+000D,
in the range U+0080–U+009F,
or in the range 0xD8000–0xDFFF (surrogates).;"
character.The following is an example of a decimal numeric
character reference for the character
"†"
(U+2020 DAGGER).
†
Hexadecimal numeric character references consist of the following parts, in exactly the following order.
&"
character.#"
character.x"
character
or a
"X"
character.0–9,
a–f,
and
A–F,
representing a base-sixteen integer that itself is a
Unicode code point that is not
U+0000,
U+000D,
in the range U+0080–U+009F,
or in the range 0xD800–0xDFFF (surrogates).;"
character.The following is an example of a hexadecimal numeric
character reference for the character
"†"
(U+2020 DAGGER).
†
Character references are not themselves text, and no part of a character reference is text.
An
ambiguous ampersand
is an
"&"
character that is followed by some
text
other than a
space character,
a
"<",
character, or another
"&"
character.
SVG and MathML elements are elements from the SVG and MathML namespaces. SVG and MathML elements can be used both in documents in the HTML syntax and in documents in the XML syntax. Syntax rules for SVG and MathML elements in documents in the XML syntax are defined in the XML specification [XML]. The following list describes additional syntax rules that specifically apply to SVG and MathML elements in documents in the HTML syntax.
/"
character before the closing
">"
character are said to be
marked as self-closing.CDATA sections in SVG and MathML contents in documents in the HTML syntax consist of the following parts, in exactly the following order:
<![CDATA["]]>“]]>"CDATA sections are allowed only in the contents of elements from the SVG and MathML namespaces.
The following shows an example of a CDATA section.
<annotation encoding="text/latex">
<![CDATA[\documentclass{article}
\begin{document}
\title{E}
\maketitle
The base of the natural logarithms, approximately 2.71828.
\end{document}]]>
</annotation>
The complete set of HTML elements is the set of elements described in the following sections.
The a element represents a hyperlink.
transparent (either phrasing content or flow content)
any element that can contain phrasing elements, any element that can contain flow elements
The abbr element represents an abbreviation or acronym.
any element that can contain phrasing elements
The address element represents contact information.
any element that can contain flow elements
The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map.
empty (void element)
common attributes
& alt★
& href★
& target
& ping
& rel
& media
& hreflang
& type
&
shape.rect
& coords.rect★
or shape.circle★
& coords.circle★
or shape.poly★
& coords.poly★
or shape.default
The area element is a void element. An area element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The article element represents a section of content that forms an independent part of a document or site; for example, a magazine or newspaper article, or a blog entry.
zero or more style elements, followed by flow content
any element that can contain flow elements
The aside element represents content that is tangentially related to the content that forms the main textual flow of a document.
zero or more style elements, followed by flow content
any element that can contain flow elements
An audio element represents an audio stream.
Transparent, with the following specific structure:
a src attribute, or zero or more source elements followed by flow content
a src attribute, or zero or more source elements followed by phrasing content
common attributes & autoplay & autobuffer & controls & loop & src
any element that can contain phrasing elements, any element that can contain flow elements
The b element represents a span of text offset from its surrounding content without conveying any extra importance; for example, keywords in a document abstract, product names in a review, or other spans of text whose typical typographic presentation is bold text.
any element that can contain phrasing elements
The base element specifies a document-wide base URL for the purposes of resolving relative URLs, and a document-wide default browsing context name for the purposes of following hyperlinks.
empty (void element)
The base element is a void element. A base element must have a start tag but must not have an end tag.
The bdo element provides a means to specify a direction override of the Unicode BiDi algorithm.
any element that can contain phrasing elements
The blockquote element represents a section that is quoted from another source.
A blockquote element must have both a start tag and an end tag.
any element that can contain flow elements
The body element represents the body of a document (as opposed to the document’s metadata).
common attributes & onafterprint & onbeforeprint & onbeforeunload & onhashchange & onmessage & onoffline & ononline & onpopstate & onredo & onresize & onstorage & onundo & onunload
A body element's start tag may be omitted if
the first thing inside the body element is not a space character or a comment, except if the first thing
inside the body element is a
script or style element.
A body element's end tag may be omitted if the
body element is not immediately
followed by a comment and the element is either
not empty or its start tag
has not been omitted.
The br element represents a line break.
empty (void element)
The br element is a void element. A br element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The canvas element represents a resolution-dependent bitmap canvas, which can be used for dynamically rendering of images such as game graphics, graphs, or other images.
transparent (either phrasing content or flow content)
any element that can contain phrasing elements, any element that can contain flow elements
The cite element represents the cited title of a work; for example, the title of a book mentioned within the main text flow of a document.
any element that can contain phrasing elements
The code element represents a fragment of computer code.
any element that can contain phrasing elements
The col element represents one or more columns in the column group represented by its colgroup parent.
empty (void element)
The col element is a void element. A col element must have a start tag but must not have an end tag.
A colgroup element's
start tag may be omitted
if the first thing inside the colgroup element is a col element, and if the element is not
immediately preceded by another colgroup element whose end tag has been omitted.
A
colgroup element's end tag may be omitted if the
colgroup element is not
immediately followed by a space character or
a comment.
A command element with no type attribute specified represents the same thing as a command element with its type attribute set to "command".
The command element
with a type attribute whose
value is "command" represents a command with an
associated action.
empty (void element)
The command element is a void element. A command element must have a start tag but must not have an end tag.
any element that can contain metadata elements, any element that can contain phrasing elements
The command element
with a type attribute whose
value is "radio" represents
a selection of one item from a list of items.
empty (void element)
common attributes & type★ & radiogroup★ & checked & label & icon & disabled
The command element is a void element. A command element must have a start tag but must not have an end tag.
any element that can contain metadata elements, any element that can contain phrasing elements
The command element
with a type attribute whose
value is "checkbox" represents a state or option
that can be toggled.
empty (void element)
The command element is a void element. A command element must have a start tag but must not have an end tag.
any element that can contain metadata elements, any element that can contain phrasing elements
The datalist element represents a set of option elements that represent predefined options for other controls.
zero or more option elements, intermixed with phrasing content
any element that can contain phrasing elements
The dd element represents a description or value.
A dd element must have a
start tag.
A
dd element's end tag may be omitted if the
dd element is immediately
followed by another dd element or
a dt element, or if there is no
more content in the parent element.
The dd element represents the description or value part of a term-description (name-value) grouping in a description list.
The del element represents a range of text that has been deleted from a document.
transparent (either phrasing content or flow content)
any element that can contain phrasing elements, any element that can contain flow elements
The details element represents a control from which the user can obtain additional information or controls on-demand.
an optional summary element, followed by flow content
any element that can contain flow elements
The dfn element represents the defining instance of a term.
any element that can contain phrasing elements
The div element is a generic container for flow content that by itself does not represent anything.
zero or more style elements, followed by flow content
any element that can contain flow elements
The dl element represents a description list.
any element that can contain flow elements
The dl element represents a description list, which consists of zero or more term-description (name-value) groupings; each grouping associates one or more terms/names (the contents of dt elements) with one or more descriptions/values (the contents of dd elements).
The dt element represents a term or name.
A dt element must have a
start tag.
A
dt element's end tag may be omitted if the
dt element is immediately
followed by another dt element or
a dd element.
The dt element represents the term or name part of a term-description (name-value) grouping in a description list.
The em element represents a span of text with emphatic stress.
any element that can contain phrasing elements
The embed element represents an integration point for external content.
empty (void element)
The embed element is a void element. An embed element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The fieldset element represents a
set of form controls grouped under a common name.
an optional legend element, followed by flow content
common attributes & name & disabled & form
any element that can contain flow elements
The figcaption element represents a caption or legend for a figure.
A figcaption element must have both a start tag and an end tag.
The figure element represents a unit of content, optionally with a caption, that is self-contained, that is typically referenced as a single unit from the main flow of the document, and that can be moved away from the main flow of the document without affecting the document’s meaning.
one figcaption element, followed by flow content or flow content followed by an optional figcaption element
any element that can contain flow elements
The form element represents a user-submittable form.
common attributes & action & method & enctype & name & accept-charset & novalidate & target & autocomplete
any element that can contain flow elements
any element that can contain flow elements, hgroup
any element that can contain flow elements, hgroup
any element that can contain flow elements, hgroup
any element that can contain flow elements, hgroup
any element that can contain flow elements, hgroup
any element that can contain flow elements, hgroup
The head element collects the document’s metadata.
one title element, intermixed with an optional base element, intermixed with metadata elements
A head element's
start tag may be
omitted if the first thing inside the
head element is an
element.
A head element's end tag may be omitted if the
head element is not
immediately followed by a space character
or a comment.
The header element represents the header of a section.
any element that can contain flow elements
The hgroup element represents a group of headings.
any element that can contain flow elements
The hr element represents a paragraph-level thematic break.
empty (void element)
The hr element is a void element. An hr element must have a start tag but must not have an end tag.
any element that can contain flow elements
Some examples of thematic breaks that can be marked up using the hr element include a scene change in a story, or a transition to another topic within a section of a reference book.
The html element represents the root of a document.
An html element's start tag may be omitted if
the first thing inside the html element is not a comment.
An html element's end tag may be omitted if the
html element is not
immediately followed by a comment and the element contains a
body element that is either not
empty or whose start tag
has not been omitted.
The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose (content whose typical typographic presentation is italicized).
any element that can contain phrasing elements
Some examples of spans that might use the i element include a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, a ship name, or some other prose whose typical typographic presentation is italicized.
The iframe element introduces a new nested browsing context.
iframe.iframe element's browsing context is to be rendered
in a manner that makes it appear to be part of the
containing document (seamlessly included in the parent
document).any element that can contain phrasing elements
The img element represents an image.
empty (void element)
The img element is a void element. An img element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
An input element with no type attribute specified represents the same thing as a input element with its type attribute set to "text".
The input element
with a type attribute whose
value is "text" represents
a one-line plain text edit control for the input element’s value.
empty (void element)
common attributes & name & disabled & form & type & maxlength & readonly & size & value & autocomplete & autofocus & list & pattern & required & placeholder
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "password" represents
a one-line plain-text edit control for entering a password.
empty (void element)
common attributes & name & disabled & form & type★ & maxlength & readonly & size & value & autocomplete & autofocus & pattern & required & placeholder
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "checkbox" represents
a state or option that can be toggled.
empty (void element)
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "radio" represents
a selection of one item from a list of items (a radio
button).
empty (void element)
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "submit" represents a button for
submitting a form.
empty (void element)
common attributes & name & disabled & form & type★ & value & formaction & autofocus & formenctype & formmethod & formtarget & formnovalidate
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "reset" represents a button for
resetting a form.
empty (void element)
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "file"
represents a list of file items, each consisting of a file
name, a file type, and a file body (the contents of the
file).
empty (void element)
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "image"
represents either an image from which the UA enables a user
to interactively select a pair of coordinates and submit the
form, or alternatively a button from which the user can submit
the form.
empty (void element)
common attributes & name & disabled & form & type★ & alt★ & src & formaction & autofocus & formenctype & formmethod & formtarget & formnovalidate & height & width
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "datetime" represents
a control for setting the element’s value to a string
representing a global date and time (with timezone
information).
empty (void element)
common attributes & name & disabled & form & type★ & autocomplete & autofocus & list & min & max & step.float & readonly & required & value
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "datetime-local" represents
a control for setting the element’s value to a string
representing a local date and time (with no timezone
information).
empty (void element)
common attributes & name & disabled & form & type★ & autocomplete & autofocus & list & min & max & step.float & readonly & required & value
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "date" represents
a control for setting the element’s value to a string
representing a date.
empty (void element)
common attributes & name & disabled & form & type★ & autocomplete & autofocus & list & min & max & step.integer & readonly & required & value
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "month" represents
a control for setting the element’s value to a string
representing a month.
empty (void element)
common attributes & name & disabled & form & type★ & autocomplete & autofocus & list & min & max & step.integer & readonly & required & value
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "time" represents
a control for setting the element’s value to a string
representing a time (with no timezone information).
empty (void element)
common attributes & name & disabled & form & type★ & autocomplete & autofocus & list & min & max & step.float & readonly & required & value
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "week" represents
a control for setting the element’s value to a string
representing a week.
empty (void element)
common attributes & name & disabled & form & type★ & autocomplete & autofocus & list & min & max & step.integer & readonly & required & value
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "number" represents
a precise control for setting the element’s value to a
string representing a number.
empty (void element)
common attributes & name & disabled & form & type★ & autocomplete & autofocus & list & min & max & step.float & readonly & required & value
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "range" represents
an imprecise control for setting the element’s value to a
string representing a number.
empty (void element)
common attributes & name & disabled & form & type★ & autocomplete & autofocus & list & min & max & step.float & value
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "email" represents
a control for editing a list of e-mail addresses given in the
element’s value.
empty (void element)
common attributes & name & disabled & form & type★ & autocomplete & autofocus & list & maxlength & pattern & readonly & required & size & placeholder & multiple★ & value.multiple or value.single
The input element is a void element. An input element must have a start tag but must not have an end tag.
any element that can contain phrasing elements
The input element
with a type attribute whose
value is "url" represents
a control for editing an absolute URL given in the element’s
value.
empty (void element)
common attributes & name & disabled & form & type★ & autocomplete & autofocus & list & maxlength
4.07. Comments # T
Comments consist of the following parts, in exactly the following order:
<!--"-->"The text part of comments has the following restrictions:
>" character->"--"-" characterThe following is an example of a comment.