Deprecated Elements & Attributes and Newer Constructs

XHTML 1.0 Transitional Elements <menu /> <u /> <s /> <strike /> <basefont /> <font /> Newer Constructs Use another list type. Use CSS property “text-decoration” and set its value to “underline”. Use CSS property “text-decoration” and set its value to “line-through”. Use CSS property “text-decoration” and set its value to “line-through”. Use CSS styling and set the “font-family” property to desired font. Use CSS styling to set the property of the element, such as a DIV or SPAN. The CSS properties include: color font-family font-size text-decoration text-align text-indent text-transform • font-weight Use the <object /> tag Use the <input /> tag Use the <em /> tag Use the <strong /> tag • • • • • • •

<applet /> <isindex /> <i /> <b /> Elements / Attributes

Iframe
name align Use the ID attribute Use the CSS property “text-align” Use the CSS property “background-image” or “background”. Use the CSS property “background-color” or “background”. Use the CSS property “color” for the “body” style Use the CSS section “a:link” and set the property “color”. Use the CSS section “a:visited” and set the property “color”. “a:hover” and set the property “color”.

body
background bgcolor text link vlink alink

div / p / h1…h6

“width”. “background-color”. Use the CSS property “vertical-align” and “text-align” map name input align legend name Use the attribute “id”. Use the CSS property “background-color”.align Use the CSS property “text-align”. table align bgcolor tr bgcolor td. Use the CSS property the parent tag Use the CSS property Use the CSS property Use the CSS property “vertical-align” and “text-align” in “border”. Use the CSS property “vertical-align” and “text-align” in the parent tag Use the CSS property “border”. br clear object align border hspace vspace img name align border hspace vspace Use the attribute “id”. Use the CSS property “list-style-type” or “list-style”. or right-margin to 0 for right alignment. “padding”. Use the attribute “id”.0 ul / ol / li type compact hr align noshade size width Use Use Use Use the the the the CSS CSS CSS CSS property property property property “text-align”. “color”. or the left-margin to 0 for left alignment. Use the attribute “id”. Use the CSS property “padding”. “padding”. “width”. Use the CSS property “background-color”. Use the CSS property “padding”. Use Use Use Use the the the the CSS CSS CSS CSS property property property property “word-wrap”. Use the CSS property “clear”. “height”. th nowrap bgcolor width height . “height”. Set table's CSS properties left-margin and right-margin at "auto" for centering. pre width name Use the CSS property “width”. This attribute has been removed from the HTML DOM 1.