Normative Definitions
—cdata
Character Data: A string consisting of one or more numbers or
other characters representing data as specified in the entity definitions below.
These character include US-ASCII codes , Latin-1 charset ,
Symbol charset , and Special
Characters charsets . Cdata is never parsed but is rendered as presented,
thus "<" and "&" are rendered as displayable
characters. Line feeds are ignored while each carriage return and tab is replaced with
a space. Browsers may ignore leading and trailing whitespace within the
attribute value. CDATA attribute values are typically case-sensitive, though this is not the
case with all attributes that take CDATA values.
—pcdata
Parsed Character Data: A character string that can be read and interpreted
by the user agent or server side application. The same characters allowed for cdata are
acceptable. The left angle "<" is interpreted as the start of an
element, and the ampersand "&" is interpreted as the start of an
entity. Substitute < and & to over-ride this behavior.
—nmtoken
Named tokens: arbitrarily assigned names that represent various members of a
defined set of names in a controlled vocabulary. For example, the use of "en" to refer to
English as a member of the set of all languages. Frequently these are
described in a defined namespace.
—implied
The attribute is optional and need not be defined. The implication refers to the default or inherited value that is applied if not
otherwise specified.
—required
The attribute must be defined.
—fixed
The attribute is permanently defined and must not be changed. Its value is shown in
the following parentheses.
—empty
No closing tag is required and must be self closed, thus <foo />
instead of the normal <foo></foo>.
—deprecated
This element is presently supported however it is in disfavor and may be
dropped from future specifications. There are always suitable
alternatives which should be used.
[ENTITY]
This denotes declaration of an XHTML entity. The entity name is immediately followed by its respective
attribute list. Comments in curly braces provide additional descriptive information.
[ELEMENT]
This denotes declaration of an XHTML element. The element name is immediately followed by its respective
child elements in parentheses followed by its attribute list.
Comments in curly braces provide additional descriptive information.
[BLOCK ELEMENT]
This denotes declaration of an XHTML element. The element name is immediately followed by its respective
child elements in parentheses followed by its attribute list.
Comments in curly braces provide additional descriptive information. Block
elements may not be nested inside other block elements but may contain inline
elements.
[INLINE ELEMENT]
This denotes declaration of an XHTML element. The element name is immediately followed by its respective
child elements in parentheses followed by its attribute list.
Comments in curly braces provide additional descriptive information. Inline
elements can be inside either block or inline elements, may contain other
inline elements, and may not contain block elements unless specifically noted.
DOCUMENT ELEMENTS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Note: The text shown above must appear on the first lines of the document
exactly as shown. Its only child is html .
[ELEMENT ] html (head
body ) [child of dtd ]
id { a document wide unique identifier }
id —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
xmlns { the namespace URI designates the document profile}
uri —fixed ( http://www.w3.org/1999/xhtml )
Note: This element requires a head and body container. Theoretically, there could be a variety of named body elements for different purposes, however no present browsers support this capability.
HEAD ELEMENTS
[ELEMENT ] head
( title base meta
link style script
object isindex ) [child of html ]
{ container of document parameters }
id { a document wide unique identifier }
id —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
profile { profile is used to describe additional elements in addition to
those declared in the namespace }
uri —implied
Note: Exactly one title element and a meta
element to set the charset are required. The others are
optional. There can only be one head container per html container.
Author's note: the profile attribute appears to be a hook included in
XHTML to provide a catchall means to extend the function of the markup. There
are three instances when a profile seems to be needed. First, acceptable
values for the rel and rev attributes provided in the anchor
and link elements must be defined for them to be useful. W3C suggests
some possible meanings but no real standard exists--yet. I have published an
ontology in both html
and xml/rdf
as as early attempt at defining these. Second, XML namespaces must be declared
before they can be used. For example, in the Dublin
Core DC:Author meta-element, the meaning of "Author"
is defined in the "DC" namespace, so without an explicit reference to
that namespace, "Author" has no meaning. Third, properly designed meta
description requires the use of ontologies (controlled vocabularies) or
structural specifications (complex datatyping such as URI). I have published a
possible implementation of such a profile in both html
and xml/rdf to demonstrate how
it might be implemented. While the use of this profile is open to general
use, it should not be considered a standard and is subject to change. The author
invites comments and suggestions.
[ELEMENT ] title (text ) [child of head ]
{ container for page title }
id: { a document wide unique identifier }
id —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
Note: The title element is not considered part of the flow of text. It should
be displayed, for example, as the page header when printed or in the window
titlebar. Exactly one title
is required per document.
[ELEMENT ] base—empty [child of head ]
{ specify network location of this page }
id { a document wide unique identifier }
id —implied
href { establishes the base of relative uri references if other than the current document }
uri —implied
target { indicates which frame is referred to }
frametarget —implied
Note: This is really intended for dealing with framesets, ordinarily it isn't used.
[ELEMENT ] meta—empty [child of head ]
{ describe this document }
id { a document wide unique identifier }
id —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
http-equiv { treat this data as part of the http file header }
pcdata —implied
name { the subject of the triple }
pcdata —implied
content { the predicate of the triple }
pcdata —required
scheme { the nature of the predicate }
pcdata —implied
Note: Meta tags provide a means to pass information about the nature of the
document. Some search engines use various declarations to classify searches.
However, most meta information is not used in the indexing process. The content
of a meta tag is defined by the external application that is evaluating it.
Note: the name attribute used in the Meta Elements is different from
the name attribute used in other elements. Semantically, it is the subject of
the triple, scheme describes the nature of the predicate, and content is the
predicate of the triple.
[ELEMENT ] link—empty [child of head ]
{ describe the relationship between this document and others }
id { a document-wide unique identifier }
id —implied
name { specify the identity of the link in the document.links array }
links —implied
charset { specify the character set of this link's target }
charset —implied
href { specify the network location of this link's target }
uri —implied
hreflang { specify the language of this link's target }
languagecode —implied
type { specify the mimetype of this link's target }
contenttype —implied
rel { specify the relationship between this document and the link's target }
linktypes —implied
rev { specify the reverse relationship between this document and the link's target }
linktypes —implied
media { specify the medium this link applies to }
mediadesc —implied
target { specify the frame for this link's target to open in }
frametarget —implied
Relationship values can be used in principle:
for document specific toolbars/menus when used with the link element in document head e.g. start,
contents, previous, next, index, end, help;
to link to a separate style sheet (rel="stylesheet");
to make a link to a script (rel="script");
by stylesheets to control how collections of html nodes are rendered into printed
documents, or
to make a link to a printable version of this document e.g. a PostScript or PDF version (rel="alternate" media="print".
Note: the rev and rel attributes describe the semantic
relationship between two resources. For example rel="parent" and
rev="child". These relationships should be described in the
document specified in the head element profile attribute.
[ELEMENT ] style (style rules) [child of head ]
{ container for style elements }
id: { a document-wide unique identifier }
id —implied
title { specify an informative description of this element }
text —implied
type { specify mimetype of style elements }
contenttype —required
ex. "text/css"
media { specify which medium this sheet applies to }
mediadesc —implied
xml:space { preserve whitespace }
(="preserve")—fixed ( 'preserve' )
[ELEMENT ] isindex—empty
[child of head ] { single-line text input control }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang {XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
prompt { specify prompt text }
text —implied
Note: This element was intended to provide a means to provide user input into a
script positioned in the head container that runs before the page loads. It is
the only input element that can be placed in the head
container. For example, it could prompt for a
document name then run a script to load the selected document:
Alternatively, the use of the input element provides greater control options
when positioned in a body container.
BODY ELEMENTS
[ELEMENT ] body (block inline
form )[child of html ] { container for document content }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
background { specify network location of background image }
uri —implied
bgcolor { specify this page's background color }
color —implied
vlink { specify this page's visited link color }
color —implied
alink { specify this page's active link color }
color —implied
onload { specify script to run on page load }
script —implied
onunload { specify script to run on page unload }
script —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Block :
div
p
h1
h2
h3
h4
h5
h6
address
pre
blockquote
ins
del
hr
center
ul
ol
dl
menu
dir
table
script
noscript
noframes
fieldset
isindex
Inline :
span
ins
del
bdo
em
strong
dfn
code
basefont
samp
kbd
var
cite
abbr
a
acronym
q
sub
sup
tt
i
b
big
small
u
s
strike
font
object
applet
script
noscript
img
map
iframe
br
input
select
textarea
button
label
Note: inline elements are required to be contained within flow elements.
Flow elements are prohibited inside inline elements and other flow elements except where specifically permitted.
[BLOCK ELEMENT ] div (block
inline form ) [child of body ] { generic
language/style container }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of elements within this
division }
textalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
[BLOCK ELEMENT ] hr—empty [child of body ] {
horizontal rule }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
align { specifies horizontal alignment of the rule }
talign —implied
noshade { specifies whether line will render flat or 3D }
(="noshade")—implied { shade is the
default }
size { specifies the height of the line }
pixels —implied
width { specifies the width of the line }
length —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
[INLINE ELEMENT ] br—empty [child of body ] {
forced line break }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
clear { controls text placement relative to floating objects }
clear —implied
Note: the br element also serves as block element.
Not valid for HTML5 documents
[BLOCK ELEMENT ] center (block
inline form ) [child of body ]
{ center block level content }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCode —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Not valid in HTML5 documents
[INLINE ELEMENT ] basefont—empty )
[child of body ] { specify base font
characteristics }
id { a document-wide unique identifier }
id —implied
size { specify text size }
textsize —required
color { specify text color }
color —implied
face { specify text face }
textface —implied
Note: the basefont element works as either a block or an inline element.
It establishes a new size, color, and/or face from this point in the
document until explicitly changed.
[INLINE ELEMENT ] span (text
inline ) {
generic language/style container }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
TEXT ELEMENTS
[BLOCK ELEMENT ] p (text inline )
[child of body ] { normal
text container }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of cell contents }
textalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in size 3 serif font.
[BLOCK ELEMENT ] h1 (text inline )
[child of body ] { most important
heading }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of cell contents }
textalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in size 6 bold serif font.
[BLOCK ELEMENT ] h2 (text inline )
[child of body ] { second most important heading }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCode —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of cell contents }
textalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in size 5 bold serif font.
[BLOCK ELEMENT ] h3 (text inline )
[child of body ] { third most important heading }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
class —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCode —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of cell contents }
textalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in size 4 bold serif font.
[BLOCK ELEMENT ] h4 (text inline )
[child of body ] { fourth most important heading}
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCode —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of cell contents }
textalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in size 3 bold serif font.
[BLOCK ELEMENT ] h5 (text inline )
[child of body ] { fifth most important heading }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of cell contents }
textalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in size 2 bold serif font.
[BLOCK ELEMENT ] h6 (text inline )
[child of body ] { least important heading }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of cell contents }
textalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in size 1 bold serif font.
[BLOCK ELEMENT ] address (text
inline
p input select
textarea label button )[child of body ]
{ author's contact info }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in italic font.
[BLOCK ELEMENT ] pre (text
inline ) [child of body ]
{ preformatted text }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
width { specifies the number of characters per line }
number —implied
xml:space { preserve whitespace }
(="preserve")—fixed
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in monospace font.
Note: the pre element may not contain the following inline
elements: img, object, applet, big, small, sub, sup, font, or basefont
[BLOCK ELEMENT ] blockquote (block
inline form ) [child of body ] {
indents content }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
cite { specify network location of this source document - semantic only }
uri —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
[BLOCK ELEMENT ] ins (text
block inline form ) {
indicates inserted text }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
cite { specify network location of a document justifying the text insertion
- semantic only}
uri —implied
datetime { specify the date of the insertion - semantic only }
datetime —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders with an underline.
Note: ins is allowed in both block and inline content.
Caution: it is
inappropriate to include block content within an ins element
occurring within inline content.
[BLOCK ELEMENT ] del (text
block inline form ) {
indicates
deleted text }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
cite { specify network location of a document justifying the text deletion -
semantic only}
uri —implied
datetime { specify the date of the deletion - semantic only }
datetime —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders with a strike through.
Note: del is allowed in block and inline content.
[INLINE ELEMENT ] bdo (text
inline ) {
Bi Directional Override }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtdir —required
[INLINE ELEMENT ] em (text inline ) {
emphasis }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in italic.
[INLINE ELEMENT ] strong (text inline ) {
strong emphasis }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in bold.
[INLINE ELEMENT ] dfn (text inline ) {
definitional }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in italics.
Note: semantically used to indicate a definition.
[INLINE ELEMENT ] code (text inline ) {
program code }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in monospace font.
Note: semantically used to indicate program code.
[INLINE ELEMENT ] samp (text inline ) {
sample }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in monospace font.
Note: semantically used to indicate a sample of something for example, of
program output.
[INLINE ELEMENT ] kbd ( text inline ) {
keyboard }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in monospace.
Note: semantically used to indicate user input i.e. something user would
type.
[INLINE ELEMENT ] var (text inline ) {
variable }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in italic font.
Note: semantically used to indicate a variable.
[INLINE ELEMENT ] cite (text inline ) {
source citation }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders in italic font.
Note: semantically used to indicate a source citation.
[INLINE ELEMENT ] abbr (text inline ) {
abbreviation }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: the title attribute can be used to indicate the meaning of the
abbreviation which may render as a tooltip.
Note: semantically used to indicate an abbreviation.
Not valid in HTML5 documents
[INLINE ELEMENT ] acronym (text inline ) {
acronym }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: the title attribute can be used to indicate the expanded acronym
which may render as a tooltip.
Note: semantically used to indicate an acronym.
[INLINE ELEMENT ] q (text inline ){ inlined quote with external reference }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
cite { specify network address of source of the quote - semantic only}
uri —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: semantically used to indicate a quotation.
[INLINE ELEMENT ] sub (text inline ) {
subscript }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders as a subscript(like this)
[INLINE ELEMENT ] sup (text inline ) {
superscript }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders as a superscript(like this)
Not valid for HTML5 documents
[INLINE ELEMENT ] tt (text inline ) {
teletype }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: render in monospace font.
[INLINE ELEMENT ] i (text inline ) {
italics }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: render in italic font. Not semantically correct, the <em> "emphasis"
element is preferred.
[INLINE ELEMENT ] b (text inline ) {
bold }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: render in bold font. Not semantically correct, use the <strong> element
instead.
Not valid in HTML5 documents
[INLINE ELEMENT ] big (text inline ) {
increase font size }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: increase font by one size. Does not increase above 7.
[INLINE ELEMENT ] small (text inline ){
reduce font size }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: reduce font by one size. Does not reduce below 1.
[INLINE ELEMENT ] u (text inline ) {
underline }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: render with an underline.
[INLINE ELEMENT ] s (text inline ){
strike-through }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: render with a strike through.
Not valid for HTML5 documents
[INLINE ELEMENT ] strike (text
inline ) { strike-through }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: render with a strike-through.
Not valid for HTML5 documents
[INLINE ELEMENT ] font (text inline ) {
local change to font }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
size { specify font size }
textsize —implied
color { specify font color }
color —implied
face { specify font face }
textface —implied
HYPERTEXT ELEMENTS
[INLINE ELEMENT ] a (text inline ) {
the anchor element }
id { a document-wide unique identifier }
id —implied
name { specify the identity of the anchor in the document.anchors array }
anchors —implied (Note
1)class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
charset { specify the character set of the anchor's target } charset —implied
type { specify the mimetype of the anchor's target }
contentype —implied
href { specify the network location of the anchor's target }
uri —implied { note: can
point to a bookmark or call a script}
hreflang { specify the language of the anchor's target }
languagecode —implied
rel { specify the relationship between this document and the target }
linktypes —implied
rev { specify the reverse relationship between this document and the target }
linktypes —implied
shape { specify the shape of the hotspot }
shape —implied
coords { specify the coordinates of the hotspot }
coords —implied
target { specify the frame for the anchor's target to render in }
frametarget —implied
accesskey { accessibility key character. }
keyChar —implied
tabindex { tab ordering }
number —implied
onfocus [ the element got focus }
script —implied
onblur { the element lost focus ]
script —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note 1: Use of the name attribute, while still valid, is no longer favored
and is being phased out in favor of the id attribute (Ed. note).
Note 2: anchors ("a ") must not be nested.
Note 3: when the hotspot specifications shape and coords are not
specified, the entire anchor content is a link; however, when specified only,
that region is a link.
Note 4: the rev and rel attributes describe the semantic
relationship between two resources. For example rel="parent" and
rev="child". These relationships should be described in the
document specified in the head element profile attribute.
MULTIMEDIA ELEMENTS
[INLINE ELEMENT ] object
(text param block
inline )
{ Embed active object }
id { a document-wide unique identifier }
id —implied
name { specify the identity of the object in the document.objects
array }
objects —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
declare { object is declared without being instantiated }
(="declare")—implied
classid { specify network location of this object's implementation }
uri —implied
codebase { specify network location of object's relative base }
uri —implied
data { specify network location of data needed by this object }
uri —implied
type { specify mimetype of the object's data }
contenttype —implied
codetype { specify mime type of the object's code }
contenttype —implied
archive { specify network location of object's archive }
urilist —implied
standby { specify text to display while the object is loading }
text —implied
height { specify object's height }
length —implied
width { specify object's width }
length —implied
usemap { specify name or network location of image map }
mapname —implied
tabindex { specify the tab order of the object }
number —implied
align { specify horizontal alignment of object }
imgalign —implied
border { specify border width }
pixels —implied
hspace { specify left and right side spacing outside of the border }
pixels —implied
vspace { specify top and bottom spacing outside the border }
pixels —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note:
param elements should precede other content with in the element. Parameters
can also be expressed as attribute/value pairs on the
object element itself when brevity is desired.
Not valid in HTML5 documents
[INLINE ELEMENT ] applet (text param
block inline ){
Embed Java Applet inline }
id { a document-wide unique identifier }
id —implied
name { specify the identity of the applet in the document.applets
array }
applets —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
codebase { specify network location of applet's relative base }
uri —implied
archive { specify network location of applet's archive file }
uri —implied
code { specify network location of applet's code file }
uri —implied
object { specify network location of the applet }
uri —implied
alt { specify alternate text for user agents that do not support Java }
text —implied
width { specify applet's width }
length —required
height { specify applet's height }
length —required
align { specify applet's horizontal alignment }
imgalign —implied
hspace { specify left and right side spacing outside applet's border }
pixels —implied
vspace { specify top and bottom spacing outside applet's border }
pixels —implied
Note: one of code or object attributes must be present. Place param elements before other content.
The use of this element is non preferred as the object element provides
greater capability.
[ELEMENT ] param—empty
[child of object applet ]
{ supplies a named property value for this object }
id { a document wide unique identifier }
id —implied
name { the subject of the tuple }
pcdata —required
value { the predicate of the tuple }
pcdata —implied
valuetype { specify the nature of the value }
nmtoken —implied (data or ref or object) see
note below
Note:
data - (default) This means that the value submitted by the value attribute will be evaluated and passed as a string
ref - This means that the value submitted by the value attribute will be an unresolved URI
object - This means that the value submitted by the value attribute will refer to an object declaration
Note: In XML it would seem natural to follow RDF and support an
abbreviated syntax where the param elements are replaced
by attribute value pairs on the object start tag.
SCRIPTING ELEMENTS
[BLOCK ELEMENT ] script (pcdata ) [child of head
body ] { container for client side scripting }
id { a document wide unique identifier }
id —implied
charset { specify the character set used in the file indicated in the src
attribute }
charset —implied
type { specify the mimetype of the file indicated in the src
attribute }
contenttype —required
ex. type="text/javascript"
language { specify the programming language and version, see note }
pcdata —implied ex.
language="javascript1.5"
src { specify the network location of a file of valid functions and
expressions }
uri —implied
defer { specifies that the script does not generate document content }
(="defer")—implied
xml:space { specifies whether whitespace should be preserved }
(="preserve")—fixed ( 'preserve' )
Note: the contents of the script container must be valid functions and
expressions consistent with the programming language specified in the required type
attribute. The script content within the tags is identical to the content of the
external file. The script element is both block and inline.
Note: the language attribute has no specific purpose other than as a
means to pass information to the script being called, therefore meaningful
values depend on the code executing in that script. This can be used to call
different functions depending on the type and version of the user agent.
[BLOCK ELEMENT ] noscript (block
inline form ) [child of
body ] { alternate content container for non script-based rendering }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCode —implied
dir { direction for weak/neutral text }
txtDir —implied
Note: the noscript element should follow any block level script element to provide a suitable substitute for the functionality of the intended
scripting if the user agent cannot render the script. The user agent will either
execute the script or render the noscript depending on its capability but never
both. The noscript
element is both block and inline.
IMAGE ELEMENTS
[INLINE ELEMENT ] img—empty { Render images }
id { a document-wide unique identifier }
id —implied
name { specify the identity of the image in the document.images
array }
images —implied (Note 1)class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
src { specify the network location of the image to be rendered }
uri —required
alt { specify text to be rendered if image is unavailable }
text —required
longdesc { specify network location of a text file describing the image }
uri —implied
height { specify the height of the image }
length —implied
width { specify the width of the image }
length —implied
usemap { specify the name or network location of the client side image mapping file }
see note below—implied
ismap { specify the network location of a server side image map }
uri —implied
align { specify the horizontal alignment of the image }
imgalign —implied
border { specify the border thickness }
length —implied
hspace {specify the horizontal space outside the image border }
pixels —implied
vspace { specify the vertical space outside the image border }
pixels —implied
onload { image has successfully loaded }
script —implied
onerror { image has failed to load }
script —implied
onabort { user has aborted image loading }
script —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note 1: Use of the name attribute, while still valid, is no longer favored
and is being phased out in favor of the id attribute (Ed. note).
Note 2: To avoid accessibility problems for people who aren't
able to see the image, you should provide a text
description using the alt and longdesc attributes.
In addition, avoid the use of server-side image maps.
The usemap attribute refers to the id attribute of the map
element having the hotspot definitions. Though not widely supported, some user
agents may support a uri pointing to a remote map
description.
[INLINE ELEMENT ] map (area block ) {
Container for client-side image mapping }
id { a document wide unique identifier }
id —required
class { a list of style classes }
classes —implied
style { associated style info }
stylesheet; —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: although a number of elements can be held in this container, normally the only elements within are
area and a elements. The map element is inline only.
[ELEMENT ] area—empty [child of map ]
id { a document-wide unique identifier }
id —implied
name { specify the identity of the area in the document.links array }
links —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 n language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
shape { specify the 'hotspot' shape }
shape ex. "rect"
coords { specify the 'hotspot' dimensions }
coords —implied
href { specify the target of the 'hotspot' i.e. the document to open }
uri —implied
nohref { specifes that this 'hotspot' has no target }
(="nohref")—implied
alt { specifies alternative text do display if no image is rendered }
text —required
target { specifies where the specified document will open }
frametarget —implied
accesskey { accessibility key character }
keyChar —implied
tabindex { tab ordering }
number —implied
onfocus { the element got the focus }
script —implied
onblur { the element lost the focus }
script —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: these can be placed in the same document or grouped in a separate document although this is not widely supported yet.
A hotspot is simply an area on the image map of specified shape and
dimension that when clicked loads the document specified in the href atttribute.
FRAME ELEMENTS
[INLINE ELEMENT ] iframe (block
inline form ){ inline subwindow }
id { a document wide unique identifier }
id —implied
name { specify the identity of the iframe in the document.frames
array }
frames —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
longdesc { specify network location of a file describing the content of this
element }
uri —implied
src { specify the network location of the file to be opened }
uri —implied
frameborder { specifies if border to be suppressed }
(="0")—implied (displayed by default )
marginwidth { specify the space outside of the margin sides }
pixels —implied
marginheight { specify the space outside of the margin top and bottom }
pixels —implied
scrolling { specify whether scroll bars are enabled }
scroll —implied
align { specify horizontal alignment of the window }
imgalign —implied
height { specify the height of the window }
length —implied
width { specify the width of the window}
length —implied
Note: the iframe element allows web documents to be embedded in other
web documents essentially creating a single frame frameset.
Not valid for HTML5 documents
The frameset element is NOT a part of this specification. See XHTML
Frameset Reference .
Not valid for HTML5 documents
The frame element is NOT a part of this specification. See XHTML
Frameset Reference .
Not valid for HTML5 documents
[BLOCK ELEMENT ] noframes (block
inline form ) { alternate
container for non frame-based rendering }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: the noframes element is a block element however its contents
render only on user agents that either do not support frames or have frame
rendering suppressed. For example, It's used to provide a replacement for
nav links that ordinarily would be rendered in another frame.
FORM ELEMENTS
[ELEMENT ] form
(text block inline ) [child of body ] { form container }
id { a document-wide unique identifier }
id —implied
name { specify the script name for this form }
sname —implied (Note 1)class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
action { specify the network location of the server side script that will
process the form }
uri —required
method { specify the HTTP method to use to submit the form to the server
side script }
(get or post) ex. ="get"
enctype { specify the MIME media type of this form when
method="post" }
contenttype ex. ="application/x-www-form-urlencoded"
accept { specify MIME media types acceptable for user input }
contenttypes —implied
accept-charset { specify character set acceptable in user input }
charsets —implied
target { specify the frame where the results are to be rendered }
frametarget —implied
onsubmit { specify the client side script function to be executed when
"submit" button is clicked }
script —implied
onreset { specify the client side script function to be executed when
"reset" button is clicked }
script —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note 1: Use of the name attribute, while still valid, is no longer favored
and is being phased out in favor of the id attribute (Ed. note).
Note: form elements are block level and must not be nested.
Note 2: if a form includes a <input type="file"> control,
then method="post" and enctype="multipart/form-data"
is required.
[INLINE ELEMENT ] input—empty { input control }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
type { specify control type }
inputtype —implied
name { specify script name }
sname —required { for all
types except "submit" and "reset" }
value { see notes below }
pcdata —implied
checked { specify that the control should be checked on load}
(="checked")—implied { only relevant for
"checkbox" and "radio" controls }
disabled { specify whether the control is disabled on load }
(="disabled")—implied { cannot be used with
"hidden" type controls }
readonly { specify whether value of the control can be modified }
(="readonly")—implied { only relevant for
"text" type controls }
size { specify the size of the input element }
number —implied
{ cannot be used with "hidden" type controls }
maxlength { specify maximum number of characters that can be entered in a
text box }
number —implied { only
relevant with "text" type controls }
src { specify network location of the file. }
uri —implied { only relevant
with "image" type controls }
alt { specify alternate text to render if the image is not available }
text —implied { only relevant for "image" type controls }
usemap { specify name or network location of client side map data }
mapname —implied { only relevant with "image" type controls }
accept { specify acceptable mimetype of user input }
contenttypes —implied {
required with "file" type controls }
align { specify horizontal alignment of control }
imgalign —implied { only relevant with "image" type controls }
accesskey
keyChar —implied { accessibility key character.
tabindex
number —implied { tab ordering }
onfocus
script —implied { the element got the focus }
onblur
script —implied { the element lost the focus }
onselect { specify script to execute when select is clicked }
script —implied
onchange { specify script to execute when input value is changed }
script —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note:
Value defines the text on the button for type="button",
type="reset", and type="submit"
Value defines the symbolic result of the field passed to a script for
type="image"
Value defines the result of the input element when clicked for
type="checkboxes" and type="radio". The result is sent
to the form's action URL.
Value defines the default value of the element for type="hidden",
type="password", and type="text"
Value cannot be used with type="file"
Value is required with type="checkbox" and
type="radio"
[INLINE ELEMENT ] select (optgroup
option ) { drop down list control }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
name { specify script name }
sname —implied
size { specify the number of visible items in list }
number —implied
multiple { specify to allow multiple item selection }
(="multiple")—implied
disabled { specify that the control is disabled on load }
(="disabled")—implied
tabindex { specify tab index order }
number —implied
onfocus { specify the script function to execute when the list gets focus }
script —implied
onblur { specify the script function to execute when the list loses focus }
script —implied
onchange { specify script function to execute when the value of the
selection changes }
script —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
[ELEMENT ] optgroup (option ) { option group }
disabled { specify that the option group is disabled on load }
(="disabled")—implied
label { specify the label for the option group }
text —required
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
[ELEMENT ] option (text ) [child
of optgroup ] { selection choice }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
selected { specify that the option is preselected }
(="selected")—implied
disabled { specify that the option is to be disabled on load }
(="disabled")—implied
label { specify the label to be displayed }
text —implied
value { specifies the value to be sent to the server side script }
pcdata —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
[INLINE ELEMENT ] textarea (text ) { multi-line text field control }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
name { specify the script name of the control }
sname —implied
rows { specify the number of rows to display }
number —required
cols { specify the number of columns to display }
number —required
disabled { specify that the control is disabled on load }
(="disabled")—implied
readonly { specify that the content cannot be modified }
(="readonly")—implied
accesskey
keyChar —implied { accessibility key character.
tabindex
number —implied { tab ordering }
onfocus
script —implied { the element got the focus }
onblur
script —implied { the element lost the focus }
onselect { specify the script function to execute when selected }
script —implied
onchange { specify the script function to execute when the content changes }
script —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
[INLINE ELEMENT ] button (text
block inline ) { push button control }
id
id —implied { a document-wide unique id }
class
class —implied { a space separated list of classes }
style
styleSheet —implied { associated style info }
title
text —implied { advisory title/amplification rendered in a tooltip }
lang
languageCode —implied { backwards compatible language code }
xml:lang
languageCode —implied { language code as per XML 1.0 specification }
dir
txtDir —implied { direction for weak/neutral text }
name { specify the button's script name }
sname —implied
value { specify the initial value of the button }
pcdata —implied
type { specify the button type }
buttontype —implied
disabled { specify that the button is disabled on load }
(="disabled")—implied
accesskey
keyChar —implied { accessibility key character.
tabindex
number —implied { tab ordering }
onfocus
script —implied { the element got the focus }
onblur
script —implied { the element lost the focus }
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: the button element is legal either inside a form or as an inline element.
This element differs from the input button in that image and/or text content can
be placed inside the tags.
Note: the button element must not contain the following elements: a,
form, iframe, input, select, textarea, label , or button .
[BLOCK ELEMENT ] fieldset (text legend
block inline form ) { used to group form fields }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: only one legend element should occur in the content
and if present should only be preceded by whitespace.
Note: the fieldset tag is valid within the following tags: blockquote, body, center, dd, div, fieldset, form, iframe, li, noframes,
noscript, object, td, th
[ELEMENT ] legend (text inline )
[child of fieldset ]{ fieldset label }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
class —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
accesskey { specify keyboard character to get focus }
character —implied
align { specify horizontal alignment of this legend }
lalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: content is flow excluding a, form, form controls, iframe
[INLINE ELEMENT ] label (text
inline )
{ labels input controls }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
for { specify input control to bind this label to }
sname —implied
accesskey { specify keyboard character to get focus }
character —implied
onfocus { specify function to execute when label has focus }
script —implied
onblur { specify function to execute when label loses focus }
script —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: each label must not contain more than ONE field. Label elements shouldn't be nested.
LIST ELEMENTS
[BLOCK ELEMENT ] ul (li ) [child of body ]{ Unordered list }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
type { specify type of this list e.g disc, square, or circle }
ulstyle —implied
compact { specify compact rendering of this list (not widely supported) }
(="compact")—implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: Use the ul element when there is no semantic meaning to the order of list
elements.
[BLOCK ELEMENT ] ol
(li ) [child of body ]{ Ordered list }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
type { specify type of this list e.g. 123 ABC etc }
olstyle —implied
compact { specify compact rendering of this list (not widely supported) }
(="compact")—implied
start { specify starting number of this list }
number —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: use the ol element when there is semantic meaning to the order
of list elements.
[BLOCK ELEMENT ] menu (li )
[child of body ] { single column list }
id { a document-wide unique identifier }
id —implied
class{ a space separated list of classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
compact { specify compact rendering of this list (not widely supported) }
(="compact")—implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders identically as the ul element.
Not valid in HTML5 documents
[BLOCK ELEMENT ] dir (li)
[child of body ] { multiple column list }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
compact { specify compact rendering of this list (not widely supported) }
(="compact")—implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: renders identically as the ul element.
[ELEMENT ] li (text block
inline form )[child of ol
ul menu dir ] { List element }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCode —implied
dir { direction for weak/neutral text }
txtDir —implied
type { specifies type of list element, overrides the specification set in
the ol or ul element }
ulstyle or olstyle —implied
value { specify the starting number for this item, overrides the
specification set in the ol or ul element }
number —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
[BLOCK ELEMENT ] dl (dt dd )
[child of body ] { definition list }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
compact { specify compact rendering of this list (not widely supported) }
(="compact")—implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: use the dl element where there is a semantic relationship
between dt and dd .
[ELEMENT ] dt (text inline ) [child of dl ]
{ dt contains the term to be defined }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { advisory title/amplification rendered in a tooltip }
languageCode —implied x
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
[ELEMENT ] dd (text block
inline form ) [child of dl ]
{ dd contains the term definition }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
TABLE ELEMENTS
[BLOCK ELEMENT ] table
(caption col colgroup
thead tfoot tbody
tr ) [child of body ] { container for table
elements }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
summary { a text description of the table content }
text —implied
width { sets the overall width of the table }
length —implied
border { sets the thickness of the frame around the table }
pixels —implied
frame { specifies which parts of the frame around
the table should be rendered }
tframe —implied
rules { specifies which rules to draw between cells }
trules —implied
cellspacing { sets the thickness of the space between rows and colums }
length —implied
cellpadding { sets the thickness of the space between cell border and cell
content }
length —implied
align { sets the alignment of the table relative to the page--does not
affect cell contents }
talign —implied
bgcolor { sets the background color of the table }
color —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: The default units are screen pixels.
[ELEMENT ] caption
(text inline ) [child of table ] { the table's caption }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specify location of the table's caption }
calign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
[ELEMENT ] colgroup ( col ) [child
of table ] {
groups a set of col elements and specifies common characteristics }
id { a document-wide unique identifier }
id —implied
class { a space separated list of classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
span { specify the number of columns included in this group }
number —implied (default
is 1)
width { specify the width of columns in the group }
multilength —implied
align { specifies horizontal alignment of cell content within the cells in
this column group*}
cellhalign —implied
valign { specifies vertical alignment of cell content within the cells in
this column group*}
cellvalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: colgroup allows the grouping of several semantically related columns together.
Note: use multiple colgroup sections when rules are needed between groups of table
columns.
* align and valign override positioning set by THEAD TFOOT TBODY TR elements
and is overridden by TH and TD settings.
[ELEMENT ] col—empty
[child of table colgroup ] {
specifies common characteristics of a column }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
span { specifies the number of columns included in this definition }
number —implied {default
is 1 }
width { specify the width of each column }
multilength —implied
align { specifies horizontal alignment of cell content within the cells in
this column*}
cellhalign —implied
valign { specifies vertical alignment of cell content within the cells in
this column*}
cellvalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: col elements define the alignment properties for cells in
one or more columns. The width attribute specifies the width of the columns, e.g. width=64 width in screen pixels
width=0.5* relative width of 0.5
The span attribute causes the attributes of one col element to apply to more than one column.
* align and valign override positioning set by THEAD TFOOT TBODY TR COLGROUP
elements and is overridden by TH and TD settings.
[ELEMENT ] thead (tr )[child of table ]{ container for TR elements containing
table headers }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of cell content within cells in this section*}
cellhalign —implied
valign { specifies vertical alignment of cell content within cells in this section*}
cellvalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: use to duplicate headers when breaking table
across page boundaries, or for static headers when
tbody sections are rendered in scrolling panel.
* align and valign positioning is overridden by the settings configured
by COLGROUP COL TR TH TD elements.
[ELEMENT ] tfoot (tr )
[child of table ] { container for TR elements containing table footers }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
class —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of cell content within cells in this section*}
cellhalign —implied
valign { specifies vertical alignment of cell content within cells in this
section*}
cellvalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: use duplicate footers when breaking table
across page boundaries, or for static footers when
tbody sections are rendered in scrolling panel.
* align and valign positioning is overridden by the settings configured
by COLGROUP COL TR TH TD elements.
[ELEMENT ] tbody (tr ) [child of table ]
{ container for the TR elements containing table data }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of cell content within cells in this
section*}
cellhalign —implied
valign { specifies vertical alignment of cell content within cells in this
section*}
cellvalign —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: use multiple tbody sections when rules are needed between groups of table rows.
* align and valign positioning is overridden by the settings configured
by COLGROUP COL TR TH TD elements.
[ELEMENT ] tr (th | td )
[child of thead tfoot tbody
table ] {container for th and td elements--table rows }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
align { specifies horizontal alignment of cell content within cells in this row*}
cellhalign —implied
valign { specifies vertical alignment of cell content within cells in this row*}
cellvalign —implied
bgcolor { specifies the background color of this row }
color —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
* align and valign override positioning set by THEAD TFOOT TBODY elements and
is overridden by the COLGROUP, COL, TH and TD settings.
[ELEMENT ] th (text
block inline form ) [child of tr ]{ container for column header }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
classes —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCodeXml —implied
dir { direction for weak/neutral text }
txtDir —implied
abbr { provide an abbreviated form of cell contents }
text —implied
axis { see note below }
pcdata —implied
headers { see note below }
pcdata —implied
scope { see note below }
scope —implied
rowspan { specify the number of rows to be merged }
number —implied {default is 1 }
colspan { specify the number of columns to be merged }
number —implied {default is 1 }
align { specifies horizontal alignment of cell content within the cell*}
cellhalign —implied
valign { specifies vertical alignment of cell contents with the cell* }
cellvalign —implied
nowrap { specify whether cell content is allowed to wrap }
(="nowrap")—implied { default is wrap }
bgcolor { specify the background color of this cell }
color —implied
width { specify the width of this cell }
length —implied
height { specify the height of this cell }
length —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: The headers attribute specifies a space-separated list of header
cells that provide header information for the current cell. It references the id
attributes of the headers. This is used most often to make tables more
accessible, for example the header information might be spoken before each cell
in a non-visual user agent.
Note: The axis attribute is used to place the cell into conceptual
categories that can be considered to form axes in an n-dimensional space. This
allows the user agent to then display the categorized cells in various ways.
Note: The scope attribute specifies the table cells that the current
cell provides header information for. A value of col indicates that the
cell is a header for the the rest of the column below it. A value of colgroup
indicates that the cell is a header for its current column group. A value of row
indicates that that the cell contains header information for the rest of the row
it is in. A value of rowgroup indicates that the cell is a header for its
row group. This attribute might be used in place of the header attribute and is
useful for rendering assistance by nonvisual browsers. This attribute was added
very late to the HTML 4 specification so support for this attribute is minimal.
* align and valign override positioning set by TR THEAD TFOOT TBODY COL
COLGROUP elements.
[ELEMENT ] td (text block
inline form ) [child of tr ]{ container for table data i.e. a table cell }
id { a document-wide unique identifier }
id —implied
class { a list of style classes }
class —implied
style { associated style info }
styleSheet —implied
title { advisory title/amplification rendered in a tooltip }
text —implied
lang { backwards compatible language code }
languageCode —implied
xml:lang { XML 1.0 language code }
languageCode —implied
dir { direction for weak/neutral text }
txtDir —implied
abbr { provide an abbreviated form of cell contents }
text —implied
axis { see note below }
pcdata —implied
headers { see note below }
pcdata —implied
scope { see note below }
scope —implied
rowspan { specifies the number of rows to be merged together }
number —implied {default is 1 }
colspan {specifies the number of columns to be merged together }
number —implied {default is 1 }
align { specifies horizontal alignment of cell contents within the cell* }
cellhalign —implied
valign { specifies vertical alignment of cell contents within the cell* }
cellvalign —implied
nowrap { specifies whether cell content is allowed to wrap }
(="nowrap")—implied { default is wrap }
bgcolor { specifies the background color of this cell }
color —implied
width { specifies the width of this cell }
length —implied
height { specifies the height of this cell }
length —implied
onclick { a mouse button was clicked }
script —implied
ondblclick { a mouse button was double clicked }
script —implied
onmousedown { a mouse button was pressed down }
script —implied
onmouseup { a mouse button was released }
script —implied
onmouseover { a mouse was moved onto the element }
script —implied
onmousemove { a mouse was moved over the element }
script; —implied
onmouseout { a mouse was moved away from the element }
script —implied
onkeypress { a key was pressed and released }
script —implied
onkeydown { a key was pressed down }
script —implied
onkeyup { a key was released }
script —implied
Note: The headers attribute specifies a space-separated list of header
cells that provide header information for the current cell. It references the id
attributes of the headers. This is used most often to make tables more
accessible, for example the header information might be spoken before each cell
in a non-visual user agent.
Note: The axis attribute is used to place the cell into conceptual
categories that can be considered to form axes in an n-dimensional space. This
allows the user agent to then display the categorized cells in various ways.
Note: The scope attribute specifies the table cells that the current
cell provides header information for. A value of col indicates that the
cell is a header for the the rest of the column below it. A value of colgroup
indicates that the cell is a header for its current column group. A value of row
indicates that that the cell contains header information for the rest of the row
it is in. A value of rowgroup indicates that the cell is a header for its
row group. This attribute might be used in place of the header attribute and is
useful for rendering assistance by nonvisual browsers. This attribute was added
very late to the HTML 4 specification so support for this attribute is minimal.
* align and valign override positioning set by TR THEAD TFOOT TBODY COL
COLGROUP elements.
ENTITY DECLARATIONS
Internal Names
[ENTITY ] Anchors —names
{ The document.anchors
Array }
Creates a named instance of an item or alternatively points to a named item in the document.anchors
array for JavaScript. Can also serve as the target
for anchors.
[ENTITY ] Applets —names
{ The document.applets
Array }
Creates a named instance of an item or alternatively points to a named item in the document.applets
array for JavaScript.
[ENTITY ] ButtonType —nmtoken { the type of button }
submit {default}
causes the current values of all form elements to be submitted to the server script
button
causes no default behavior, use various event triggers (i.e. onclick) to call client scripts
reset
causes a reset of all form elements to initial values
[ENTITY ] CAlign —nmtoken { table caption alignment }
top {default}
top center placement
left
top left placement
right
top right placement
bottom
bottom center placement
[ENTITY ] CellHAlign —nmtoken
{ horizontal alignment of table cell contents }
left (default)
align along left side of cell
center
align along centerline of cell
right
align along right side of cell
justify
align along both sides of cell
char
align on a specified character
If align="char" then two additional attributes are available:
char { specify alignment character }
character —implied (default: ex. char=".")
charoff { specify offset distance in pixels or percent }
length —implied ex. charoff="25" or charoff="50%"
Note: the char option is not widely supported and should not be relied on.
[ENTITY ] CellVAlign —nmtoken
{ vertical alignment attributes for cell contents }
middle (default)
center between top and bottom of cell borders
top
position at top of cell
bottom
position at bottom of cell
baseline
align with adjacent text
[ENTITY ] Class —pcdata
{a class definition derived from an internal style element or external style sheet consisting of a selector/attribute pair }
[ENTITY ] Classes —nmtoken
{ a space delimited list of classes }
[ENTITY ] Clear —nmtoken { controls text placement relative to floating objects }
none (default) Note: limited browser support for this attribute
no float
left
float to left
right
float to right
all
float left and right
[ENTITY ] Color —nmtoken { specify entity color using sRGB: #RRGGBB as Hex values or by ColorName }
[ENTITY ] Coords —pcdata { comma separated list of
coordinate pairs or triplets }
left x, top y, right x, bottom y
specify TL and BR corner of rectangle
center x, center y, radius
specify center coordinate and radius of circle
x1, y1, x2, y2, ... xn, yn, x1, y1
specify a list of coordinate pairs describing a polygon, last one same as
the first to close
[ENTITY ] Frames —names
{ the window.frames array }
Points to a named item in the window.frames
array. As the child
frame of a frameset, can also serve as
a destination for target attributes. The value of the name is established by a
<frame> element in a <frameset> or by the name attribute of
an iframe element..
[ENTITY ] FrameTarget —nmtoken {
specifies which which frame to render in }
Can refer to several relative targets or to named frames.
_self (default)
render in this frame/document
_top
opens the child frame into a
full browser window (essentially breaking the frame out of the frameset).
_parent
render in the frameset document containing the frame
_blank
opens a new window and renders in that window.
framename
frames —implied render in
a named instance of a frame
Note: the values _parent, _self, and _top are only meaningful in the context
of a framed (frameset) document and do not open a new window.
[ENTITY ] Id —pcdata
{ A unique document wide identifier }
Id is used to connect to the
entity by either style or scripting. Attribute values of type ID must begin with a letter in the range A-Z or
a-z and may be followed by letters (A-Za-z), digits (0-9), hyphens
("-"), underscores ("_"), colons (":"), and
periods ("."). These values are case-sensitive.
[ENTITY ] Images —names
{ the document.images
array}
Creates a named instance of an item or alternatively points to a named item in the document.images
array for JavaScript.
[ENTITY ] InputType —nmtoken
{ specify a control for user input }
text (default)
Single line text input
password
password box input
checkbox
single option selection (one of one)
radio
multiple option selection (one of several)
submit
form submission button
reset
form reset button
file
file uploader
hidden
passes parameter without rendering
image
image button
button
general purpose button
[ENTITY ] ImgAlign —nmtoken {
image alignment within document }
top
align top of image with top of adjacent object
middle
align center of image with bottom of adjacent object
bottom (default)
align bottom of image with bottom of adjacent object
left
align left side of image at the left, then, float text around it
right
align right side of image at right, then float text around it
[ENTITY ] LAlign —nmtoken { legend align }
left (default)
render top left
center
render top center
right
render top right
Note: while this specification defines top, bottom, left, and right as legal
values, the browsers only respond to left, center, and right.
[ENTITY ] Length —pcdata {
pixels or nn% for percentage length }
Length attribute values may be either an integer--interpreted as a number of
pixels--or a percentage of the horizontal or vertical space. The value 50%
means half the available space while 50 means 50 pixels.
[ENTITY ] Links —names
{ the document.links
array } Creates a named instance of an item
or alternatively points to a named item in the document.links
array for JavaScript.
[ENTITY ] MediaDesc —nmtoken { single or comma-separated list of
user agent types:
screen
web browser
tty
TDD machine for hearing impared
tv
WebTV
projection
video projection devices
handheld
cell phones, PDA, etc.
print
printers
braille
brailers
aural
audible screen readers
all
all user agents
[ENTITY ] MultiLength —pcdata { Length
or relative }
MultiLength attribute values may be an integer in pixels, a percentage of the horizontal or vertical space, or a relative length expressed as i *
where i is an integer. In allotting space, a browser first allots pixel and percentage lengths, then divides the
remaining space among all elements with a relative length. An element with a length of 3* will be allotted three times the
space of an element with length 1* . The value * is equivalent to 1* and is often used to mean
"fill the remaining space."
A MultiLengths value is a comma-separated list of MultiLength values.
[ENTITY ] Names —pcdata
{ JavaScript compatable identifier.}
Attribute values of type NAME must comply with JavaScript identity
conventions (e.g. begin with a letter in
the range A-Z or a-z and may be followed by letters (A-Za-z), digits (0-9),
hyphens ("-"), underscores ("_"), colons (":"),
and periods ("."). These values are case-sensitive.)
[ENTITY ] Number —pcdata { one or more digits
0-9 }
[ENTITY ] Objects —names
{ The document.objects
Array }
Creates a named instance of an item or alternatively points to a named item in the document.objects
array for JavaScript.
[ENTITY ] OLStyle —nmtoken
{ ordered (numbered) list numbering style }
"1" (default)
Arabic numbers (1, 2, 3, ...)
"a"
lower case alphabet (a, b, c, ...)
"A"
upper case alphabet (A, B, C, ...)
"i"
lower case Roman numerals (i, ii, iii, ...)
"I"
upper case Roman numerals (I, II, III, ...)
The style is applied to the sequence number, which, by default, is reset to
"1" for the first list item in an ordered list.
[ENTITY ] Pixels —pcdata { integer representing
the length in pixels }
[ENTITY ] Script —pcdata { script expression
or function call in the form: javascript:myfunction() }
[ENTITY ] Scope —nmtoken
{ Scope is simpler than headers attribute for common tables }
row
scope includes all cells in this row
col
scope include all cells in this column
rowgroup
scope includes all cells in this row group <tbody >
colgroup
scope includes all cells in this column group <colgroup >
|[ENTITY ] Scroll —nmtoken
{ specify scrolling behavior }
auto
display scrollbars if the source document is larger than the window, suppresses otherwise
yes
display scrollbars
no
suppress scrollbars
[ENTITY ] Shape —nmtoken {
hotspot definition for image maps }
rect
any rectangular area
circle
any circular area
poly
any odd shaped area
default
any area not defined as rect, circle, or poly
[ENTITY ] Sname —pcdata
{ A unique document wide identifier.}
Creates an item in a list of nmtokens used to connect to
elements for client and server scripting. Attribute values of type NAME must
begin with a letter in the range A-Z or a-z and may be followed by letters (A-Za-z),
digits (0-9), hyphens ("-"), underscores ("_"), colons
(":"), and periods ("."). These values are case-sensitive.
[ENTITY ] StyleSheet —pcdata { style sheet data
from either internal or external styling }
Each element in a document has a style attribute that is configured as an associative array
consisting of one or more of the following array elements. The following table shows the
valid form for use in XHTML style statements and in Cascading Style Sheets (CSS).
In addition, the valid JavaScript property name is shown as well. These are NOT interchangeable
(a color specification in the style attribute uses the first form while a
JavaScript event in the same element uses the second form). If a value is
undefined, the element will inherit the value of its container element, and then
repeating that process until the top level container (e.g. <body>) is
reached.
XHTML/CSS
Attribute Value
Equivalent
JavaScript Property
Purpose or Function
background-color
backgroundColor
Sets the element's background color
color
color
Sets the element's foreground color
text-align
textAlign
Set text element's horizontal alignment
text-transform
textTransform
Set text capitalization
text-decoration
textDecoration
Set text effects
text-indent
textIndent
Set paragraph indentation
text-shadow
textShadow
Set text shadowing
letter-spacing
letterSpacing
Set the spacing between characters within words
word-spacing
wordSpacing
Set the spacing between words
vertical-align
verticalAlign
Set the vertical alignment between elements
line-height
lineHeight
Set the leading between lines of text
outline
outline
Sets configuration of an outline around a text element
font-family
fontFamily
Set font face (i.e Arial, Times New Roman)
font-size
fontSize
Set font size (height)
font-weight
fontWeight
Set font weight (i.e normal, bold)
font-style
fontStyle
Set font style (i.e. normal, italic)
font-variant
fontVariant
Set font variant (i.e. small caps)
padding
padding
Set spacing between element and surrounding border
padding-top
paddingTop
Set spacing between element and top border
padding-right
paddingRight
Set spacing between element and right border
padding-bottom
paddingBottom
Set spacing between element and bottom border
padding-left
paddingLeft
Set spacing between element and left border
border-width
borderWidth
Set width of the region between the element's padding and margins
border-top-width
borderTopWidth
Set width of the region between the element's padding and top margin
border-right-width
borderRightWidth
Set width of the region between the element's padding and right margin
border-bottom-width
borderBottomWidth
Set width of the region between the element's padding and bottom margin
border-left-width
borderLeftWidth
Set width of the region between the element's padding and left margin
border-color
borderColor
Set color of the region between the element's padding and margins
border-top-color
borderTopColor
Set color of the region between the element's padding and top margin
border-right-color
borderRightColor
Set color of the region between the element's padding and right margin
border-bottom-color
borderBottomColor
Set color of the region between the element's padding and bottom margin
border-left-color
borderLeftColor
Set color of the region between the element's padding and left margin
border-style
borderStyle
Set style of the region between the element's padding and margins
border-top-style
borderTopStyle
Set style of the region between the element's padding and top margin
border-right-style
borderRightStyle
Set style of the region between the element's padding and right margin
border-bottom-style
borderBottomStyle
Set style of the region between the element's padding and bottom margin
border-left-style
borderLeftStyle
Set style of the region between the element's padding and left margin
border-top
borderTop
Set color, style, and width of the region between the element's padding and top margin
border-right
borderRight
Set color, style, and width of the region between the element's padding and right margin
border-bottom
borderBottom
Set color, style, and width of the region between the element's padding and bottom margin
border-left
borderLeft
Set color, style, and width of the region between the element's padding and left margin
[ENTITY ] TAlign —nmtoken
{ horizontal placement of element relative to document }
left
align at left side of document or context
center
align in the center of document or context
right
align at right side of document or context
[ENTITY ] Text —cdata
{ text is a sequence of characters representing renderable content. }
Legal characters include either the tab, carriage return, line feed, or any of the characters of Unicode
[ENTITY ] TextAlign —nmtoken
{for p, div, h1-h6 elements }
left
Align text left
center
Align text in center
right
Align text right
justify
Align text on both left and right
Note: the default is align="left" for ltr headings, align="right" for rtl headings
[ENTITY ] TextSize —nmtoken
{ specify the absolute or relative height of text }
1 | 2 | 3 | 4 | 5 | 6 | 7
absolute size
+1 | +2 | +3 | +4 | +5 | +6 | +7
relative increase
-1 | -2 | -3 | -4 | -5 | -6 | -7
relative decrease
Note: relative values will not increase the size above seven or reduce size below one.
[ENTITY ] TFrame —nmtoken
{ specifies which sided of the table frame should be rendered }
box (default)
top, bottom, left, and right
border
top, bottom, left, and right
above
top only
below
bottom only
hsides
top and bottom only
lhs
left side only
rhs
right side only
vsides
left and right sides only
void
no sides
[ENTITY ] TRules —nmtoken
{ defines which rules to draw between cells in a table }
none
render no rules
rows
render horizontal rules between rows
cols
render vertical rules between columns
groups
render horizontal and vertical rules between thead, tbody, tfoot, and colgroup sections
all
render horizontal and vertical rules between rows and columns
Note: default conditions - if rules is not specified and border is absent or
border="0" assume "none" otherwise "all"
[ENTITY ] TxtDir —nmtoken { used for
p, headings, bdo}
ltr
Left to Right
rtl
Right to Left
|[ENTITY ] TextFace —nmtoken
{ specify the font face }
serif (default)
Sample
sans serif
Sample
monospace
Sample
cursive
Sample
symbol
Sample
any named face
[ENTITY ]
ULStyle —nmtoken
{ unordered list bullet styles }
disc {default}
filled in circle
square
filled in square
circle
open circle
External Names and References
[ENTITY ] Charset —nmtoken
{ a character encoding
per RFC-2045 , for a complete list of recognized types see IANA Character Sets
e.g. "US-ASCII" or "UTF-8"}
[ENTITY ] Charsets —nmtoken { a space separated list of
charset }
[ENTITY ] ContentType —nmtoken
{ media type per RFC-2046 ,
for a complete list of recognized types see IANA
Media Types }
[ENTITY ] ContentTypes —nmtoken { comma-separated list of
ContentType }
[ENTITY ] Datetime —pcdata
{ date and time information. ISO-8601
}
Date format:
YYYY-MM-DDThh:mm:ssTZD
[ENTITY ] LanguageCode —nmtoken
{ a language code per RFC-3066 e.g. "en" or "en-US" }
Historically, language identification codes have been inconsistently rendered
along the lines of RFC-3066
using ISO-639
for language name codes and ISO-3166
for country name codes and considerable variation has been normal. There has
been some usage of fully spelled out names (i.e. "english") in some
contexts.
[ENTITY ] LanguageCode Xml—nmtoken
{ a language code per the XML 1.0 specification }
The XML 1.0 specification states that language identification codes shall be
strictly rendered according to RFC-3066
using ISO-639
for language name codes and ISO-3166
for country name codes.
[ENTITY ] LinkTypes —nmtoken { space-separated list of link
types }
Options could include alternate | stylesheet | start | next | prev | contents | index
| glossary | copyright | chapter | section | subsection | appendix | help | bookmark
depending on profile definitions.
[ENTITY ] KeyChar —nmtoken { a single textual character
corresponding to the keys on the keyboard }
On MS Windows machines the user
presses the [ALT] key and then this key, on Apple/McIntosh machines, the [CMD]
key and this key.
[ENTITY ] URI —pcdata { a Uniform Resource
Identifier, see RFC-2396 }
[ENTITY ] UriList —pcdata { a space separated list of
URI }
Character Mnemonic Entities
[ENTITY ] HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent "
[ENTITY ] HTMLsymbol PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent "
[ENTITY ] HTMLspecial PUBLIC "-//W3C//ENTITIES Special for XHTML//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent "
[ENTITY ] HTMLspecial PUBLIC "-//W3C//ENTITIES Standard Colors for XHTML//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml-standard-colors.ent "
Latin1
Special
Symbols
Standard Colors