W3C

XHTML 1.0 Strict Cheat Sheet

See also: XHTML Basic 1.1 cheat sheetRecommended Doctype DeclarationsXHTML Flavors comparisons.

Getting started

A minimal English XHTML 1.0 Strict document would look like the following:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
 <title>My page title</title>
</head>
<body>

</body>
</html>

Elements and Attributes reference

The tables below document which elements and attributes are allowed in XHTML 1.0 Strict, and with the constraints defined in the DTD (please note that the DTD doesn't enforce all the known constraints for XHTML 1.0).

Skip to attributes table.

Elements

a | abbr | acronym | address | area | b | base | bdo | big | blockquote | body | br | button | caption | cite | code | col | colgroup | dd | del | dfn | div | dl | dt | em | fieldset | form | h1 | h2 | h3 | h4 | h5 | h6 | head | hr | html | i | img | input | ins | kbd | label | legend | li | link | map | meta | noscript | object | ol | optgroup | option | p | param | pre | q | samp | script | select | small | span | strong | style | sub | sup | table | tbody | td | textarea | tfoot | th | thead | title | tr | tt | ul | var |

Elements
ElementAttributesContent model
a Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: accesskey shape href id title charset rev rel onfocus type onblur hreflang class lang name xml:lang coords dir tabindex
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , ) except a ,
Text , script , ins , del , bdo , map ,
abbr Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
acronym Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
address Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
area Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: accesskey shape href alt id title onfocus onblur nohref class lang xml:lang coords dir tabindex
Empty
b Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
base Other: href id Empty
bdo Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
big Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
blockquote Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: class lang title id xml:lang cite dir
Any numbers of
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
script , ins , form , del , noscript ,
body Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: onunload class lang onload title id xml:lang dir
Any numbers of
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
script , ins , form , del , noscript ,
br Style Attributes ( style )
Other: title id class
Empty
button Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: accesskey disabled id title onfocus type onblur class lang name value xml:lang dir tabindex
Any numbers of
samp , Text , abbr , code , ins , h2 , del , object , em , sup , h4 , tt , script , map , br , strong , h3 , div , h5 , cite , dl , table , q , address , dfn , var , ul , span , pre , blockquote , p , hr , h1 , sub , bdo , big , noscript , h6 , ol , i , img , b , acronym , small , kbd ,
caption Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
cite Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
code Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
col Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: char id span title width valign charoff class lang align xml:lang dir
Empty
colgroup Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: char id span title width valign charoff class lang align xml:lang dir
Any numbers of
col ,
dd Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
Text , form , del , script , map , ins , bdo , noscript ,
del Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: datetime class lang title id xml:lang cite dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
Text , form , del , script , map , ins , bdo , noscript ,
dfn Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
div Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
Text , form , del , script , map , ins , bdo , noscript ,
dl Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
At least one of
dt , dd ,
dt Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
em Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
fieldset Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
Text , form , del , script , map , ins , legend , bdo , noscript ,
form Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: onreset accept accept-charset id title method onsubmit class enctype lang xml:lang action dir
Any numbers of
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
noscript , script , ins , del ,
h1 Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
h2 Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
h3 Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
h4 Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
h5 Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
h6 Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
head Other: lang profile xml:lang id dir
  1. Any numbers of
    meta , style , script , object , link ,
    1. title ,
    2. Any numbers of
      meta , style , script , object , link ,
    3. Optionally
      1. base ,
      2. Any numbers of
        meta , style , script , object , link ,
    1. base ,
    2. Any numbers of
      meta , style , script , object , link ,
      1. title ,
      2. Any numbers of
        meta , style , script , object , link ,
hr Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Empty
html Other: lang xml:lang id dir xmlns
  1. head ,
  2. body ,
i Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
img Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: usemap alt id title ismap width height class lang src xml:lang longdesc dir
Empty
input Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: accesskey accept disabled usemap alt onchange id size checked title readonly onselect onfocus type onblur class lang src name value xml:lang maxlength dir tabindex
Empty
ins Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: datetime class lang title id xml:lang cite dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
Text , form , del , script , map , ins , bdo , noscript ,
kbd Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
label Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: onblur accesskey class lang for title id xml:lang onfocus dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
legend Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: accesskey class lang title id xml:lang dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
li Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
Text , form , del , script , map , ins , bdo , noscript ,
link Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: href id title media charset rev type rel hreflang class lang xml:lang dir
Empty
map Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: class lang name title id xml:lang dir
At least one of
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
script , ins , form , del , noscript , area (at least one),
meta Other: lang name content xml:lang http-equiv scheme id dir Empty
noscript Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
script , ins , form , del , noscript ,
object Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: classid usemap codetype id title archive width type codebase height data class lang name standby xml:lang declare dir tabindex
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
Text , form , del , script , map , ins , param , bdo , noscript ,
ol Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
At least one of
li ,
optgroup Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: disabled id class lang title label xml:lang dir
At least one of
option ,
option Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: disabled id class lang title selected value label xml:lang dir
Text ,
p Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
param Other: valuetype type id value name Empty
pre Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Core Attributes ( xml:space title class id )
Style Attributes ( style )
Other: lang xml:lang dir
Any numbers of
Inline elements ( samp , abbr , code , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , small , ) except object , img ,
Text , script , ins , del , bdo , map ,
q Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: class lang title id xml:lang cite dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
samp Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
script Other: src defer xml:space charset type id Text ,
select Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: disabled onchange id size title onfocus onblur multiple class lang name xml:lang dir tabindex
At least one of
optgroup , option ,
small Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
span Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
strong Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
style Other: lang title media xml:space xml:lang type id dir Text ,
sub Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
sup Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
table Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: frame border id title width cellspacing rules cellpadding class lang summary xml:lang dir
  1. caption (optional),
  2. colgroup , col ,
  3. thead (optional),
  4. tfoot (optional),
  5. tr (at least one), tbody (at least one),
tbody Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: char class lang title align id xml:lang valign charoff dir
At least one of
tr ,
td Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: colspan char id axis rowspan title valign scope charoff class lang align headers xml:lang dir abbr
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
Text , form , del , script , map , ins , bdo , noscript ,
textarea Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: accesskey cols disabled onchange id rows title readonly onselect onfocus onblur class lang name xml:lang dir tabindex
Text ,
tfoot Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: char class lang title align id xml:lang valign charoff dir
At least one of
tr ,
th Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: colspan char id axis rowspan title valign scope charoff class lang align headers xml:lang dir abbr
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Block elements ( h3 , pre , h6 , ol , div , ul , h2 , h5 , blockquote , h1 , dl , table , address , h4 , hr , p , fieldset , )
Text , form , del , script , map , ins , bdo , noscript ,
thead Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: char class lang title align id xml:lang valign charoff dir
At least one of
tr ,
title Other: lang xml:lang id dir Text ,
tr Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: char class lang title align id xml:lang valign charoff dir
At least one of
td , th ,
tt Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,
ul Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
At least one of
li ,
var Event Attributes ( onmouseup onmouseout onkeypress onkeydown onmousedown onmousemove onmouseover onclick onkeyup ondblclick )
Style Attributes ( style )
Other: lang title id xml:lang class dir
Any numbers of
Inline elements ( samp , abbr , code , object , sup , kbd , button , br , strong , a , select , textarea , cite , q , dfn , var , span , em , acronym , label , input , sub , tt , big , b , i , img , small , )
Text , script , ins , del , bdo , map ,

Attributes table

Attributes
AttributeRelated ElementsTypeDefault
XML Attributes
xml:lang Any element but base br param script Any letter, digit, or characters ‘_’, ‘-’, ‘.’, ‘:’
xmlns html Any characters (with < and & escaped) Fixed value: 'http://www.w3.org/1999/xhtml'
Core Attributes
class Any element but head title script style param base meta html Any characters (with < and & escaped)
id Any element but map ID
map ID Required
title Any element but head title script html param meta base Any characters (with < and & escaped)
xml:space pre style script 'preserve' Fixed value: 'preserve'
Style Attributes
style Any element but head title script style param base meta html Any characters (with < and & escaped)
Event Attributes
onclick Any element but head title script style param base meta br html Any characters (with < and & escaped)
ondblclick Any element but head title script style param base meta br html Any characters (with < and & escaped)
onkeydown Any element but head title script style param base meta br html Any characters (with < and & escaped)
onkeypress Any element but head title script style param base meta br html Any characters (with < and & escaped)
onkeyup Any element but head title script style param base meta br html Any characters (with < and & escaped)
onmousedown Any element but head title script style param base meta br html Any characters (with < and & escaped)
onmousemove Any element but head title script style param base meta br html Any characters (with < and & escaped)
onmouseout Any element but head title script style param base meta br html Any characters (with < and & escaped)
onmouseover Any element but head title script style param base meta br html Any characters (with < and & escaped)
onmouseup Any element but head title script style param base meta br html Any characters (with < and & escaped)
Other
abbr td th Any characters (with < and & escaped)
accept input form Any characters (with < and & escaped)
accept-charset form Any characters (with < and & escaped)
accesskey a textarea area button label input legend Any characters (with < and & escaped)
action form Any characters (with < and & escaped) Required
align colgroup tr tbody tfoot th td col thead 'left', 'center', 'right', 'justify', 'char'
alt input Any characters (with < and & escaped)
img area Any characters (with < and & escaped) Required
archive object Any characters (with < and & escaped)
axis td th Any characters (with < and & escaped)
border table Any characters (with < and & escaped)
cellpadding table Any characters (with < and & escaped)
cellspacing table Any characters (with < and & escaped)
char colgroup tr tbody tfoot th td col thead Any characters (with < and & escaped)
charoff colgroup tr tbody tfoot th td col thead Any characters (with < and & escaped)
charset a link script Any characters (with < and & escaped)
checked input 'checked'
cite q blockquote del ins Any characters (with < and & escaped)
classid object Any characters (with < and & escaped)
codebase object Any characters (with < and & escaped)
codetype object Any characters (with < and & escaped)
cols textarea Any characters (with < and & escaped) Required
colspan td th Any characters (with < and & escaped) Default value: '1'
content meta Any characters (with < and & escaped) Required
coords a area Any characters (with < and & escaped)
data object Any characters (with < and & escaped)
datetime del ins Any characters (with < and & escaped)
declare object 'declare'
defer script 'defer'
dir Any element but bdo base br param script 'ltr', 'rtl'
bdo 'ltr', 'rtl' Required
disabled option textarea button optgroup input select 'disabled'
enctype form Any characters (with < and & escaped) Default value: 'application/x-www-form-urlencoded'
for label Name of an existing id
frame table 'void', 'above', 'below', 'hsides', 'lhs', 'rhs', 'vsides', 'box', 'border'
headers td th White-space separated list of existing ids
height object img Any characters (with < and & escaped)
href base Any characters (with < and & escaped) Required
a link area Any characters (with < and & escaped)
hreflang a link Any letter, digit, or characters ‘_’, ‘-’, ‘.’, ‘:’
http-equiv meta Any characters (with < and & escaped)
ismap img 'ismap'
label option Any characters (with < and & escaped)
optgroup Any characters (with < and & escaped) Required
lang Any element but base br param script Any letter, digit, or characters ‘_’, ‘-’, ‘.’, ‘:’
longdesc img Any characters (with < and & escaped)
maxlength input Any characters (with < and & escaped)
media style link Any characters (with < and & escaped)
method form 'get', 'post' Default value: 'get'
multiple select 'multiple'
name textarea button param meta input select Any characters (with < and & escaped)
a map object Any letter, digit, or characters ‘_’, ‘-’, ‘.’, ‘:’
nohref area 'nohref'
onblur a textarea area button label input select Any characters (with < and & escaped)
onchange input textarea select Any characters (with < and & escaped)
onfocus a textarea area button label input select Any characters (with < and & escaped)
onload body Any characters (with < and & escaped)
onreset form Any characters (with < and & escaped)
onselect input textarea Any characters (with < and & escaped)
onsubmit form Any characters (with < and & escaped)
onunload body Any characters (with < and & escaped)
profile head Any characters (with < and & escaped)
readonly input textarea 'readonly'
rel a link Any characters (with < and & escaped)
rev a link Any characters (with < and & escaped)
rows textarea Any characters (with < and & escaped) Required
rowspan td th Any characters (with < and & escaped) Default value: '1'
rules table 'none', 'groups', 'rows', 'cols', 'all'
scheme meta Any characters (with < and & escaped)
scope td th 'row', 'col', 'rowgroup', 'colgroup'
selected option 'selected'
shape a area 'rect', 'circle', 'poly', 'default' Default value: 'rect'
size input select Any characters (with < and & escaped)
span col colgroup Any characters (with < and & escaped) Default value: '1'
src input script Any characters (with < and & escaped)
img Any characters (with < and & escaped) Required
standby object Any characters (with < and & escaped)
summary table Any characters (with < and & escaped)
tabindex a textarea area button object input select Any characters (with < and & escaped)
type style script Any characters (with < and & escaped) Required
button 'button', 'submit', 'reset' Default value: 'submit'
a object link param Any characters (with < and & escaped)
input 'text', 'password', 'checkbox', 'radio', 'submit', 'reset', 'file', 'hidden', 'image', 'button' Default value: 'text'
usemap input object img Any characters (with < and & escaped)
valign colgroup tr tbody tfoot th td col thead 'top', 'middle', 'bottom', 'baseline'
value input button option param Any characters (with < and & escaped)
valuetype param 'data', 'ref', 'object' Default value: 'data'
width table object col img colgroup Any characters (with < and & escaped)

Dominique Hazaël-Massieux <dom@w3.org>
Generated from XHTML 1.0 Strict DTD using dtd-doc.py
Last Modified: $Date: 2010/04/20 12:42:23 $