Strict Alternatives to Deprecated Attributes for Elements in XHTML 1.0 Strict

Name Related Elements Alternative
align caption Separate notes on allignment in production.
align img, input, object
align legend
align table
align hr
align div, h1, h2, h3, h4, h5, h6, p use CSS text-align
alink body use CSS a:link
background body use CSS background
bgcolor table use CSS background
bgcolor tr use CSS background
bgcolor td, th use CSS background
bgcolor body use CSS background
border img, object use CSS border
clear br use CSS clear
compact dl, ol, ul use CSS line-height
height td, th use CSS line-height for cell content; don't use tables for layout
hspace img, object use CSS padding
language script use type attribute and MIME type
link body use CSS a:link
name img Use id; for mouseovers to work in Netscape 4, use the transitional DTD
noshade hr Avoid
nowrap td, th use CSS white-space: pre
size hr specify margin-left and margin-right in CSS; alternatively use width in CSS for default aligned HR
start ol No useable alternative exists at time of writing; use Transitional DTD; embed the numbers in the data; use CSS counters
target a none
text body use CSS color
type li use CSS list-style
type ol use CSS list-style
type ul use CSS list style
value li No useable alternative exists at time of writing; use Transitional DTD; embed the numbers in the data; use CSS counters
version html avoid
vlink body use CSS a:visited
vspace img, object use CSS padding
width hr use CSS width
width td, th don't use tables for layout
width pre use CSS width