WebTeam Resources
Deprecated HTML Tags and Attributes
Older HTML tags and attributes that have been superseded by other more functional or flexible alternatives (whether as HTML or as CSS ) are declared as deprecated in HTML4 by the W3C. Browsers should continue to support deprecated tags and attributes, but eventually these tags are likely to become obsolete and so future support cannot be guaranteed.
Replacements for deprecated tags are shown below. Deprecated attributes can be replaced by style-sheet controls.
Deprecated HTML Tags
Deprecated | Description | Replacement |
<APPLET> | Inserts applet | <OBJECT> |
<B> | bold font | css styles |
<BASEFONT> | sets font styles | css styles |
<CENTER> | centers elements | styles: class="center" |
<DIR> | directory list | <UL>, <DL> |
<EM> | italicized font | css styles |
<FONT> | applies font styles | css styles |
<HR> | horizontal rule | /images/stopline.gif |
<I> | italicized font | css styles |
<ISINDEX> | adds search field | <form> |
<MENU> | menu list | <ul> |
<S> | strike through | css styles |
<STRIKE> | strike through | css styles |
<STRONG> | bold font | css styles |
<U> | underline | css styles |
Deprecated HTML attributes
Attribute | Deprecated if used in: | Replacement |
ALIGN | <CAPTION>, <IMG>, <TABLE>,<TR>,<TD>,<TH> <HR>, <DIV>, <h1..6>, <P> | css styles: right, center, left, top, middle, bottom |
ALINK | <BODY> | establish by default styles |
BACKGROUND | <BODY> | do not use BG images |
BGCOLOR | <BODY>,<TABLE>,<TR>,<TD>,<TH> | css styles |
BORDERCOLOR | <BODY>,<TABLE>,<TR>,<TD>,<TH> | css styles |
CLEAR | <BR> | |
COMPACT | <OL>,<UL> | in-line style |
COLOR | <BASEFONT>,<FONT> | css styles |
BORDER | <IMG>,<OBJECT> | css styles |
HSPACE | <IMG>,<OBJECT> | cellpadding |
HEIGHT | <HR>, <PRE>, <TD>, <TH> | in-line style |
LINK | <BODY> | establish by default styles |
NOSHADE | <HR> | none |
NOWRAP | <TD>, <TH> | class="nowrap" |
SIZE | <BASEFONT>, <FONT>, <HR> | css styles |
START | <OL> | in-line style |
TEXT | <BODY> | css styles |
TYPE | <LI> | css styles: a, aa, i, ii |
VALIGN | <CAPTION>, <IMG>, <TABLE>, <HR>, <DIV>, <h1..6>, <P> | css styles: class="middle", class="bottom" |
ALINK | <BODY> | establish by default styles |
VALUE | <LI> | |
VLINK | <BODY> | establish by default styles |
WIDTH | <HR>, <PRE>, <TD>, <TH> | in-line style |
VSPACE | <IMG>,<OBJECT> | cellpadding |
Last Updated: March 13, 2004
|