非推奨要素と非推奨属性

[統計] HTMLからXHTMLへの移行を進めていますか?


非推奨とされている要素と属性の一覧です。


非推奨の要素と属性について

HTML4.01では、いくつかの要素や属性が非推奨とされています。

DTDがStrictの場合には、これらの非推奨要素・非推奨属性、及びフレームは使用することができません。

非推奨の要素と属性の一覧

スタイルシートで代替可能なものについては、スタイルシートへのリンクを表示しています。

HTMLタグリストに掲載されている要素と属性のみを表示しています。

非推奨要素と非推奨属性
(赤いセルの項目が非推奨の要素、または属性です。)
要素 属性 スタイルシート
applet
basefont size font-size
(body) bgcolor background-color
background background-image
text color
link a:link
vlink a:visited
alink a:active
(br) clear clear
(caption) align text-align
center text-align
(div) align text-align
(dl) compact
font size font-size
color color
face font-family
(h1〜h6) align text-align
(hr) size height
width width
align text-align、margin
noshade
(img) border border
align vertical-alignfloat
vspace margin
hspace margin
(input) align vertical-alignfloat
(legend) align
(li) type list-style-type
value
(ol) type list-style-type
start
(p) align text-align
s text-decoration
strike text-decoration
(table) bgcolor background-color
align float
(tr) bgcolor background-color
(th) width width
height height
bgcolor background-color
nowrap white-space
(td) width width
height height
bgcolor background-color
nowrap white-space
u text-decoration
(ul) type list-style-type

b要素big要素i要素small要素tt要素は、物理要素ではありますが非推奨ではありません。
tr要素、th要素、td要素に対するalign属性は、例外的に非推奨ではないようです。



[特集] レンタルサーバー比較 & サーバー選びのチェックポイント