XHTML1.0 Element Attributes by DTD

If you do spot any errors, please send them to [email protected].

There does still seem to be some confusion as to whether the target attribute is available within the XHTML Transitional DTD or not.

The current XHTML Transitional DTD at http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd does contain the target attribute (check line 650).

However,the supporting documentation at:

http://www.w3.org/TR/1999/xhtml-modularization-19990406/DTD/doc/xhtml1-t.elt.html

does not list target as an available attribute for the <a> element.

Furthermore, the only information that I have been able to glean from the W3C lists seems to indicate that, in November 2001, the above document was correct.

It does look as if the XHTML Transitional DTD was re-written between Nov 2001 and Aug 2002 and the target attribute re-instated but that the supporting documentation was never updated.

If anyone knows of any further definitive documentation on this subject, please let me know.

Comparison of attributes in XHTML 1.0
Name Related Elements Strict Transitional Frameset
abbr td th Yes Yes Yes
accept-charset form Yes Yes Yes
accept form input Yes Yes Yes
accesskey a area button input label legend textarea Yes Yes Yes
action form Yes Yes Yes
align applets Not available Yes Yes
align iframe Not available Not available Yes
align caption div h1-h6 hr img input legend p table No Yes Yes
align col colgroup tbody td tfoot th thead tr Yes Yes Yes
alink body No Yes Yes
alt applet Not available Yes Yes
alt area img input Yes Yes Yes
archive applet Not available Yes Yes
archive object Yes Yes Yes
axis td th Yes Yes Yes
background body No Yes Yes
bgcolor table tr td th body No Yes Yes
border img No Yes Yes
border table Yes Yes Yes
cellpadding table Yes Yes Yes
cellspacing table Yes Yes Yes
char col colgroup tbody td tfoot th thead tr Yes Yes Yes
charoff col colgroup tbody td tfoot th thead tr Yes Yes Yes
charset a link script Yes Yes Yes
checked input Yes Yes Yes
cite blockquote q del ins Yes Yes Yes
class all elements except base basefont head html meta param script style title Yes Yes Yes
classid object Yes Yes Yes
code applet Not available Yes Yes
codebase applet Not available Yes Yes
codebase object Yes Yes Yes
codetype object Yes Yes Yes
color basefont font Not available Yes Yes
cols frameset Not available Not available Yes
cols textarea Yes Yes Yes
colspan td th Yes Yes Yes
compact dir dl menu ol ul Not available Yes Yes
content meta Yes Yes Yes
coords a area Yes Yes Yes
data object Yes Yes Yes
datetime del ins Yes Yes Yes
declare object Yes Yes Yes
defer script Yes Yes Yes
dir apple basefont Not available Yes Yes
dir frame frameset iframe Not available Not available Yes
dir all elements except base br param script Yes Yes Yes
disabled button input optgroup option select textarea Yes Yes Yes
enctype form Yes Yes Yes
face basefont font Not available Yes Yes
for label Yes Yes Yes
frame table Yes Yes Yes
frameborder frame iframe Not available Not available Yes
headers td th Yes Yes Yes
height applet Not available Yes Yes
height iframe Not available Not available Yes
height td th No Yes Yes
height img Yes Yes Yes
href a area link base Yes Yes Yes
hreflang a link Yes Yes Yes
hspace applet Not available Yes Yes
hspace img No Yes Yes
http-equiv meta Yes Yes Yes
id all elements except base head html meta script style title Yes Yes Yes
ismap input No Yes Yes
ismap img Yes Yes Yes
label option optgroup Yes Yes Yes
lang applet basefont Not available Yes Yes
lang frame frameset iframe Not available Not available Yes
lang all elements except base br param script Yes Yes Yes
link body No Yes Yes
longdesc frame iframe Not available Not available Yes
longdesc img Yes Yes Yes
marginheight frame iframe Not available Not available Yes
marginwidth frame iframe Not available Not available Yes
maxlength input Yes Yes Yes
media link style Yes Yes Yes
method form Yes Yes Yes
multiple select Yes Yes Yes
name applet Not available Yes Yes
name frame iframe Not available Not available Yes
name a button input map meta param select textarea Yes Yes Yes
nohref area Yes Yes Yes
noresize frame Not available Not available Yes
noshade hr No Yes Yes
nowrap td th No Yes Yes
object applet Not available Yes Yes
onblur a area button input label select textarea Yes Yes Yes
onchange input select textarea Yes Yes Yes
onclick applet basefont font Not available Yes Yes
onclick frame frameset iframe Not available Not available Yes
onclick all elements but base bdo br head html meta param script style title Yes Yes Yes
ondblclick applet basefont font Not available Yes Yes
ondblclick frame frameset iframe Not available Not available Yes
ondblclick all elements but base bdo br head html meta param script style title Yes Yes Yes
onfocus a area button input label select textarea Yes Yes Yes
onkeydown applet basefont font Not available Yes Yes
onkeydown frame frameset iframe Not available Not available Yes
onkeydown all elements but base bdo br head html meta param script style title Yes Yes Yes
onkeypress applet basefont font Not available Yes Yes
onkeypress frame frameset iframe Not available Not available Yes
onkeypress all elements but base bdo br head html meta param script style title Yes Yes Yes
onkeyup applet basefont font Not available Yes Yes
onkeyup frame frameset iframe Not available Not available Yes
onkeyup all elements but base bdo br head html meta param script style title Yes Yes Yes
onload frameset Not available Not available Yes
onload body Yes Yes Yes
onmousedown applet basefont font Not available Yes Yes
onmousedown frame frameset iframe Not available Not available Yes
onmousedown all elements but base bdo br head html meta param script style title Yes Yes Yes
onmousemove applet basefont font Not available Yes Yes
onmouseout frame frameset iframe Not available Not available Yes
onmouseout all elements but base bdo br head html meta param script style title Yes Yes Yes
onmouseover applet basefont font Not available Yes Yes
onmouseover frame frameset iframe Not available Not available Yes
onmouseover all elements but base bdo br head html meta param script style title Yes Yes Yes
onmouseup applet basefont font Not available Yes Yes
onmouseup frame frameset iframe Not available Not available Yes
onmouseup all elements but base bdo br head html meta param script style title Yes Yes Yes
onreset form Yes Yes Yes
onselect input textarea Yes Yes Yes
onsubmit form Yes Yes Yes
onunload frameset Not available Not available Yes
onunload body Yes Yes Yes
profile head Yes Yes Yes
readonly input textarea Yes Yes Yes
rel a link Yes Yes Yes
rev a link Yes Yes Yes
rows frameset Not available Not available Yes
rows textarea Yes Yes Yes
rowspan td th Yes Yes Yes
rules table Yes Yes Yes
scheme meta Yes Yes Yes
scope td th Yes Yes Yes
scrolling frame iframe Not available Not available Yes
selected option Yes Yes Yes
shape a area Yes Yes Yes
size basefont font Not available Yes Yes
size hr No Yes Yes
size input select Yes Yes Yes
span col colgroup Yes Yes Yes
src frame iframe Not available Not available Yes
src img input script Yes Yes Yes
standby object Yes Yes Yes
start ol No Yes Yes
style basefont Not available Yes Yes
style all elements but base head html meta param script style title Yes Yes Yes
summary table Yes Yes Yes
tabindex a area button input select textarea Yes Yes Yes
target a No Yes Yes
text body No Yes Yes
title basefont Not available Yes Yes
title all elements but base head html meta param script title Yes Yes Yes
type ol ul No Yes Yes
type a button form input link object param script style Yes Yes Yes
usemap img input Yes Yes Yes
valign col colgroup tbody td tfoot th thead tr Yes Yes Yes
value button input option param Yes Yes Yes
valuetype param Yes Yes Yes
version html No Yes Yes
vlink body No Yes Yes
vspace applet Not available Yes Yes
vspace img No Yes Yes
width applet Not available Yes Yes
width iframe Not available Not available Yes
width hr td th No Yes Yes
width col colgroup img table Yes Yes Yes

Please send any comments to [email protected]