XHTMLの非推奨要素、非推奨属性のまとめ
XHTMLの非推奨要素、非推奨属性をまとめました。
非推奨要素
XHTML1.1で廃止となった要素。
要素名 | 代替手段 |
---|---|
applet | object要素 |
basefont | font-size(CSS) |
center | text-align,margin(CSS) |
dir | ul要素 |
font | font(CSS) |
frame | なし |
frameset | なし |
noframes | なし |
iframe | object要素 |
isindex | form要素、input要素 |
menu | ul要素 |
u | text-decoration(CSS) |
s,strike | text-decoration(CSS) |
物理的フォント要素
廃止ではないがCSSによる指定が推奨されている。論理的意味を持たない要素。
要素名 | 代替手段 |
---|---|
b | font-style(CSS) |
i | font-weight(CSS) |
big | font-size(CSS) |
small | font-size(CSS) |
tt | font-family(CSS) |
非推奨属性
XHTML1.1で廃止となった属性。
要素名 | 属性名 | 代替手段 |
---|---|---|
全て | lang | xml:lang属性 |
a | name | id属性 |
a,area | target | なし |
base | target | なし |
body | backfround | background-image(CSS) |
bgcolor | background-color(CSS) | |
text | color(CSS) | |
link | color(CSS) | |
vlink | color(CSS) | |
alink | color(CSS) | |
br | clear | clear(CSS) |
caption | align | caption-side(CSS) |
div | align | text-align,margin(CSS) |
form | target | なし |
h1~h6 | align | text-align,margin(CSS) |
hr | align | margin(CSS) |
no shade | border(CSS) | |
size | border(CSS) | |
width | width(CSS) | |
img | align | float,vertical-align(CSS) |
border | border(CSS) | |
hspace | margin(CSS) | |
vspace | margin(CSS) | |
input | align | float,vertical-align(CSS) |
legend | align | float,vertical-align(CSS) |
li | type | list-style-type(CSS) |
value | なし | |
link | target | なし |
map | name | id属性 *2 |
object | align | float,vertical-align(CSS) |
border | border(CSS) | |
hspace | margin(CSS) | |
vspace | margin(CSS) | |
ol | compact | なし |
start | なし | |
type | list-style-type(CSS) | |
p | align | text-align,margin(CSS) |
pre | width | width(CSS) |
script | langage | type属性 |
table | align | float,text-align(CSS) |
bgcolor | background-color(CSS) | |
th,td | bgcolor | background-color(CSS) |
height | height(CSS) | |
nowrap | white-space | |
width | width(CSS) | |
tr | bgcolor | background-color(CSS) |
ul | compact | なし |
type | list-style-type(CSS) |
- Prev Entry:CSSの:checked擬似クラス
- Next Entry:注記などで改行が入っても文字の頭をそろえる