HTML4.0および4.01では、非推奨(Deprecated)または廃止になった要素や属性がいくつかあります。
DTDがStrictの場合には、これらの非推奨要素・非推奨属性、及びフレームは使用することができません。
スタイルシートの列は代替記述を示しています。
非推奨要素と非推奨属性のリスト
| 要素 | 属性 | スタイルシート |
|---|---|---|
| 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 | |
| dir | ||
| 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 | ||
| html | version | |
| iframe | align | |
| img | border | border |
| align | vertical-align、float | |
| vspace | margin | |
| hspace | margin | |
| input | align | vertical-align、float |
| isindex | ||
| legend | align | float |
| li | type | list-style-type |
| value | ||
| listing | ||
| menu | ||
| object | align | |
| border | ||
| hspace | ||
| vspace | ||
| ol | compact | |
| type | list-style-type | |
| start | ||
| p | align | text-align |
| plaintext | ||
| s | text-decoration | |
| script | language | |
| 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 | |
| compact | ||
| ul | type | list-style-type |
| xmp |