HTML Obsolete Attribute Reference
This reference lists obsolete HTML attributes that appeared in older HTML documents but should not be used in new web pages.
Browse the attributes by their former purpose, search by name or description, or switch to the alphabetical view. Each entry links to its reference page, where you can learn about the original behavior and modern alternatives.
For attributes used in modern HTML, see the HTML Attribute List.
Search Obsolete HTML Attributes
Enter an attribute name or a word describing its former purpose. Matching attributes appear automatically.
No obsolete HTML attributes found.
Presentation and Text Styling
alignSet the horizontal alignment of content. Use CSS text-align or layout properties instead.alinkSet the color of an active link. Use CSS :active instead.backgroundSet a background image on an element. Use CSS background-image instead.bgcolorSet an element background color. Use CSS background-color instead.borderSet a border using an HTML attribute. Use CSS border instead.bordercolorSet the color of a table or frame border. Use CSS border-color instead.clearControlled how content flowed around floated elements. Use CSS clear instead.colorSet text color directly in markup. Use CSS color instead.compactRequested compact rendering of a list. Use CSS spacing instead.faceSelected fonts in HTML markup. Use CSS font-family instead.hspaceSet horizontal spacing around an image or object. Use CSS margin instead.linkSet the color of unvisited links on the body. Use CSS :link instead.lowsrcSpecified a low-resolution image to display before the main image.noshadeRequested a solid horizontal rule. Use CSS borders instead.nowrapPrevented text from wrapping. Use CSS white-space instead.textSet the default body text color. Use CSS color instead.valignSet vertical alignment in a table cell. Use CSS vertical-align instead.vlinkSet the color of visited links. Use CSS :visited instead.vspaceSet vertical spacing around an image or object. Use CSS margin instead.Tables and Cell Layout
axisCategorized a table header cell. Use meaningful table headers and scope instead.cellpaddingSet spacing between table cell content and its border. Use CSS padding instead.cellspacingSet spacing between table cells. Use CSS border-spacing instead.charSpecified a character used to align table cell content.charoffSet the offset for character-based alignment in table cells.frameSelected the outer borders displayed around a table. Use CSS borders instead.rulesSelected internal dividing lines in a table. Use CSS borders instead.summaryProvided a text summary of a table. Use a caption and accessible table structure instead.Frames and Page Margins
allowtransparencyAllowed a frame to display a transparent background. Use CSS background properties instead.bottommarginSet the bottom margin of a document body. Use CSS margin instead.frameborderControlled whether a frame displayed a border. Use CSS border instead.framespacingSet spacing between frames in a frameset.leftmarginSet the left margin of a document body. Use CSS margin instead.marginheightSet vertical margins inside a frame. Use CSS in the framed document instead.marginwidthSet horizontal margins inside a frame. Use CSS in the framed document instead.noresizePrevented a user from resizing a frame.rightmarginSet the right margin of a document body. Use CSS margin instead.scrollingControlled scrollbars for a frame. Use CSS overflow instead.topmarginSet the top margin of a document body. Use CSS margin instead.Embedded Objects and Resources
archiveListed archived resources for an embedded applet or object.classidIdentified the implementation of an embedded object.codeSpecified the class or program for a Java applet.codebaseSet the base URL for applet or object resources.codetypeDeclared the content type of code associated with an object.declareDeclared an object without immediately instantiating it.longdescPointed to a longer description of an image or frame. Use accessible linked descriptions instead.standbyProvided a message while an embedded object loaded.typemustmatchRequired an embedded object resource to match its declared content type.Data Binding and Document Metadata
datafldNamed a field in a legacy data source.dataformatasControlled formatting of legacy data-bound content.datapagesizeSet the number of records displayed in legacy data binding.datasrcIdentified a legacy data source for an element.manifestReferenced an obsolete application cache manifest. Use modern offline web APIs instead.methodsListed HTTP methods supported by a linked resource.profileLinked a head element to a metadata profile.revDescribed a reverse relationship between linked resources.schemeSpecified a metadata value interpretation scheme.urnIdentified a resource using a uniform resource name.versionDeclared an HTML document version in older markup.Interaction and Other Attributes
contextmenuAssociated an element with a context menu.dropzoneDescribed accepted drag-and-drop data and operations.eventIdentified an event for an older script binding mechanism.languageSpecified the scripting language of a script element. Use type where appropriate.nohrefMarked an image-map area as having no hyperlink. Omit href instead.onshowHandled a show event in older context-menu implementations.Obsolete HTML Attributes A-Z
All obsolete HTML attributes are shown alphabetically below.
