W3docs

Deprecated HTML Attributes

See the complete list of deprecated HTML attributes with the tags in which they are obsolete, read their short description and find the best alternates.

The attributes presented below are deprecated, i.e., they are no longer used in the mentioned tags and are replaced by other attributes that you can find in the "Alternate" section of the table.

AttributesDescriptionDeprecated inAlternate
alignSpecifies the alignment of the element<caption>, <img>, <table>, <hr>, <div>, <h1>-<h6>, <p>CSS text-align, float and vertical-align properties
alinkSpecifies the color of an active link in a document<body>CSS active Pseudo Class
backgroundSpecifies the background image<body>CSS background-image Property
bgcolorSpecifies the background color<body>, <table>, <tr>, <td>, <th>CSS background-color Property
borderSpecifies the width of the border<img>, <object>CSS border-width Property
clearClears any right or left alignments<br>CSS clear Property
compactSpecifies that the list should render smaller than normal<ol>, <ul>CSS styling
heightSpecifies the height of the element<table>CSS height Property
hspaceSpecifies the whitespace or padding on left or right sides of an element<img>, <object>CSS padding Property
languageSpecifies scripting language<script>The type attribute
linkSpecifies the default color of the links<body>CSS link Pseudo Class
noshadeIt specifies that a horizontal line should render in one solid color (noshaded)<hr>CSS border-style Property
nowrapSpecifies that the text should not wrap within the table cell<td>, <th>CSS white-space Property
sizeSpecifies the initial width for the input field and a number of visible rows for the select element<basefont>, <font>, <hr>CSS width Property
startSpecifies the starting point of the ordered list<ol>CSS property counter-reset
textSpecifies the color of the text<body>CSS color property
typeSpecifies the type of list<li>CSS list-style-type Property
valueSpecifies the value of the list item<li>CSS counter-increment Property
vlinkSpecifies the color of visited links<body>CSS visited Pseudo Class
valignSpecifies vertical alignment of cell content<td>, <th>, <tr>CSS vertical-align Property
vspaceSpecifies the whitespace or padding above or below an element<img>,<object>CSS padding Property
widthSpecifies the width of the element<hr>,<pre>,<td>,<th>CSS width Property

Practice

Practice

Which of the following are deprecated HTML attributes according to W3docs?