Deprecated Elements

As I stated earlier, style sheets obviate the need for a number of tags that were commonly used for basic formatting tasks. Those tags are now deprecated, but they will continue to be supported in browsers for generations to come. Obviously, any attributes associated with these elements are also deprecated, but not necessarily in all other active elements. Table 7.2 shows all the elements that are deprecated in the HTML 4.0 specification.

Table 7-2. Deprecated Elements in HTML 4.0

Element

Supplanted By

APPLET

The OBJECT element

BASEFONT

Style sheet font attributes

CENTER

<DIV ALIGN=center>

DIR

The UL element

FONT

Style sheet font attributes

ISINDEX

<INPUT TYPE="text">

MENU

The UL element

S

The style sheet {text-decoration:line-through}

STRIKE

The style sheet {text-decoration:line-through}

U

The style sheet {text-decoration:underline}

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.