HTML5になると、使えなくなってしまうタグを、別のタグやCSSで実現することを考え、メモ程度にとどめておきます。
代替案を思いついたら追加するかな?
代替案を思いついたら追加するかな?
| 廃止予定タグ | 代替案 | 備考 |
| <acronym>~</acronym> | <abbr>~</abbr> | |
| <applet code="...(c)..." archive="...(a)..." width="...(w)..." height="...(h)...">~</applet> | <object type="application/x-java-applet" width="...(w)..." height="...(h)..."> <param name="code" value="...(c)..." /> <param name="archive" value="...(a)..." /> ~ </object> | |
| <basefont size="..." color="..." face="..."> | ? | |
| <bgsound src="..."> | <audio src="..." >~</audio> | <audio>タグの子要素として、<souce>タグで複数の音声ファイルを指定することが可能。 |
| <big>~</big> | <span style="font-size: larger">~</span> | <small>タグは廃止予定ではない。 |
| <blink>~</blink> | <span style="text-decoration: blink;">~</span> | |
| <center>~</center> | <div style="width: 100%; align: center;">~</div> <span style="width: 100%; align: center;">~</span> | ブロック要素なら<div>、インライン要素なら<span>なのだろうが・・・ |
| <comment>~</comment> | <!-- ~ --> | |
| <dir>~</dir> | <menu>~</menu> | |
| <font size="...(s)..." color="...(c)..." face="...(f)..." font-weight="...(w)..." point-size="...(p)...">~</font> | <span style="font-size: smaller/medium/larger; color: ..(c)...; font-family: ...(f)...; font-weight: ...(w)...; font-size: ...(p)...px;">~</span> | |
| <frame>~</frame> | ? | |
| <frameset>~</frameset> | ? | |
| <ilayer>~</ilayer> | ? | |
| <isindex> | ? | |
| <layer>~</layer> | ? | |
| <listing>~</listing> | <pre>~</pre> | |
| <marquee>~</marquee> | ? | |
| <multicol cols="...">~</multicol> | ? | |
| <nextid n="..."> | ? | |
| <nobr>~</nobr> | <span style="white-space: nowrap;">~</span> | |
| <noembed>~</noembed> | ? | |
| <noframes>~</noframes> | ? | |
| <nolayer>~</nolayer> | ? | |
| <plaintext>~</plaintext> | <pre>~</pre> | |
| <server>~</server> | ? | |
| <spacer type="..."> | ? | |
| <strike>~</strike> | <span style="text-decoration: line-through;">~</span> | <s>タグ、<u>タグも同様のcssで適用可能。 |
| <tt>~</tt> | <span style-"font-family: monospace;">~</span> | 定幅フォントを使うってことになる。 |
| <wbr> | ? | |
| <xmp>~</xmp> | <pre>~</pre> |