• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Looking Ahead to HTML 4.0 > Deprecated Attributes

7.6. Deprecated Attributes

A large number of attributes are deprecated in HTML 4.0, primarily due to the preference given to style sheets over direct content formatting. Browsers will continue to honor these deprecated attributes for a long time to come, but if you eventually design content exclusively for browsers that are HTML 4.0 compatible, you should use that project as a starting point for weaning yourself from these deprecated attributes. Table 7.4 lists all the deprecated attributes in HTML 4.0, plus the affected elements and suggested replacement syntax. In some instances, you will see a deprecated attribute associated with a new element (like the deprecated ALIGN attribute of the new IFRAME element). This is not a trick. You can still use the "old" attribute with a new element for the sake of authoring-style compatibility.

Table 7.4. Deprecated Attributes in HTML 4.0
Attribute Elements Supplanted By
ALIGN

CAPTION, APPLET, IFRAME, IMG, INPUT, OBJECT, LEGEND, TABLE, HR, DIV, H1-H6, P

					  

text-align and vertical-align style attributes
ALINK

BODY

A:active {color:}
ALT

APPLET

OBJECT element TITLE attribute
ARCHIVE

APPLET

OBJECT element ARCHIVE attribute
BACKGROUND

BODY

background style attribute
BGCOLOR

BODY, TABLE, TD, TH, TR

background-color style attribute
BORDER

IMG, OBJECT

border-width style attributes
CLEAR

BR

clear style attribute
CODE

APPLET

OBJECT element CLASSID attribute
CODEBASE

APPLET

OBJECT element CODEBASE attribute
COLOR

BASEFONT, FONT

color style attribute
COMPACT

DIR, DL, MENU, OL, UL

{display:compact}
FACE

BASEFONT, FONT

font-face style attribute
HEIGHT

APPLET

OBJECT element HEIGHT attribute
HEIGHT

TD, TH

height positioning style attribute
HSPACE

IMG, OBJECT

left positioning style attribute
LINK

BODY

A:link {color:}
NAME

APPLET

OBJECT element NAME attribute
NOSHADE

HR

 
NOWRAP

TD, TH

white-space style attribute
OBJECT

APPLET

OBJECT element CLASSID attribute
PROMPT

ISINDEX

LABEL element
SIZE

HR

width positioning style attribute
SIZE

FONT, BASEFONT

font-size style attribute
START

OL

To be determined in CSS2
TEXT

BODY

color style attribute
TYPE

LI, OL, UL

list-style-type style attribute
VALUE

LI

To be determined in CSS2
VERSION

HTML

Built into the DTD for HTML 4.0
VLINK

BODY

A:visited {color:}
VSPACE

IMG, OBJECT

top positioning style attribute
WIDTH

HR

width positioning style attribute
WIDTH

APPLET

OBJECT element WIDTH attribute
WIDTH

TD, TH

COLGROUP element WIDTH attribute



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint