Html5-deprecated-tags
提供:Dev Guides
HTML5-非推奨のタグと属性
非推奨のタグ
次の要素はHTML5では使用できなくなり、その機能はCSSでより適切に処理されます-
Tags (Elements) | Description |
---|---|
<acronym> | Defines an acronym |
<applet> | Defines an applet |
<basefont> | Defines an base font for the page. |
<big> | Defines big text |
<center> | Defines centered text |
<dir> | Defines a directory list |
<font> | Defines text font, size, and color |
<frame> | Defines a frame |
<frameset> | Defines a set of frames |
<isindex> | Defines a single-line input field |
<noframes> | Defines a noframe section |
<s> | Defines strikethrough text |
<strike> | Defines strikethrough text |
<tt> | Defines teletype text |
<u> | Defines underlined text |
非推奨の属性
HTML5の機能はCSSにより適切に処理されるため、HTML5にはHTML4にあったプレゼンテーション属性はありません。 HTML4の一部の属性はHTML5ではまったく許可されなくなり、完全に削除されました。
以下は、属性とそれに対応する影響のあるタグ(要素)を削除した表です。 これらの属性が永久に削除された要素-
Removed Attributes | From the Elements |
---|---|
rev | link, a |
charset | link and a |
shape | a |
coords | a |
longdesc | img and iframe. |
target | link |
nohref | area |
profile | head |
version | html |
name | img |
scheme | meta |
archive | object |
classid | object |
codebase | object |
codetype | object |
declare | object |
standby | object |
valuetype | param |
type | param |
axis | td and t |
abbr | td and t |
scope | td |
align | caption, iframe, img, input, object, legend, table, hr, div, h1, h2, h3, h4, h5, h6, p, col, colgroup, tbody, td, tfoot, th, thead and tr. |
alink | body |
link | body |
vlink | body |
text | body |
background | body |
bgcolor | table, tr, td, th and body. |
border | table and object. |
cellpadding | table |
cellspacing | table |
char | col, colgroup, tbody, td, tfoot, th, thead and tr. |
charoff | col, colgroup, tbody, td, tfoot, th, thead and tr. |
clear | br |
compact | dl, menu, ol and ul. |
frame | table |
compact | dl, menu, ol and ul. |
frame | table |
frameborder | iframe |
hspace | img and object. |
vspace | img and object. |
marginheight | iframe |
marginwidth | iframe |
noshade | hr |
nowrap | td and th |
rules | table |
scrolling | iframe |
size | hr |
type | li, ol and ul. |
valign | col, colgroup, tbody, td, tfoot, th, thead and tr |
width | hr, table, td, th, col, colgroup and pre. |