A Complete Guide to Web Design

(やまだぃちぅ) #1
512 Appendix C – Deprecated Tags

Deprecated Elements


Web Design in a Nutshell, eMatter Edition

Deprecated Elements
The following elements have been deprecated in the HTML 4.0 Specification:

Deprecated Attributes
The following attributes have been deprecated in the HTML 4.0 Specification.

Element Description Recommendation
<applet> Inserts applet <object>
<basefont> Sets font styles for
subsequent text

style sheets (color,font-size,font-
family,font, etc.)
<center> Centers elements
on the page

<DIV align=center>

<dir> Directory List <ul>
<font> Applies font styles style sheets (color,font-size,font-
family,font, etc.)
<isindex> Adds search field <form> and CGI programming
<menu> Menu item list <ul>
<s> Strike-through text style sheets (text-decoration)
<strike> Strike-through text style sheets (text-decoration)
<u> Underlined text style sheets (text-decoration)

Name Related Elements Comment Replacement Tag
align CAPTION Horizontal alignment
of table caption

style sheet controls

align APPLET,
IFRAME, IMG,
INPUT, OBJECT

Vertical or horizontal
alignment of element

style sheet controls

align LEGEND Aligns legend relative
to its fieldset

style sheet controls

align TABLE Table position rela-
tive to window

style sheet controls

align HR Horizontal alignment
of rule

style sheet controls

align DIV, H1, H2,
H3, H4, H5,
H6, P

Horizontal alignment
of these block
elements

style sheet controls

alink BODY Color of selected links style sheet controls
alt APPLET Short description <OBJECT>
archive APPLET Comma separated
archive list


background BODY Tiling background
graphic

style sheet controls

bgcolor TABLE Background color for
cells

style sheet controls