I am often asked, "What are newer constructs for such and such?", since Visual Studio does HTML validation here it is for everyone to see.
Deprecated Items and Newer Constructs
XHTML 1.0 Transitional
Note: Deprecated attributes are not included for elements that are already deprecated.
HTML Elements
<menu /> Newer Construct: Use another list type.
<dir /> Newer Construct: Use another list type.
<u /> Newer Construct: Use CSS property “text-decoration” and set its value to “underline”.
<s /> Newer Construct: Use CSS property “text-decoration” and set its value to “line-through”.
<strike /> Newer Construct: Use CSS property “text-decoration” and set its value to “line-through”.
<basefont /> Newer Construct: Use CSS styling and set the “font-family” property to desired font.
<font /> Newer Construct: 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
<applet /> Newer Construct: Use the <object /> tag instead.
<isindex /> Newer Construct: Use the <input /> tag instead.
<i />* Newer Construct: Use the <em /> tag instead or use CSS.
<b />* Newer Construct: Use the <strong /> tag instead or use CSS.
Deprecated Attributes
iframe
name Newer Construct: Use the ID attribute instead.
align Newer Construct: Use the CSS property “text-align” instead.
body
background Newer Construct: Use the CSS property “background-image” or “background”.
bgcolor Newer Construct: Use the CSS property “background-color” or “background”.
text Newer Construct: Use the CSS property “color” for the “body” style.
link Newer Construct: Use the CSS section “a:link” and set the property “color”.
vlink Newer Construct: Use the CSS section “a:visited” and set the property “color”.
alink Newer Construct: Use the CSS section “a:hover” and set the property “color”.
div
align Newer Construct: Use the CSS property “text-align”.
p
align Newer Construct: Use the CSS property “text-align”.
h1, h2, h3, h4, h5, h6
align Newer Construct: Use the CSS property “text-align”.
ul
type Newer Construct: Use the CSS property “list-style-type” or “list-style”.
compact No newer construct. This attribute has been removed from the HTML DOM 1.0.
ol
type Newer Construct: Use the CSS property “list-style-type” or “list-style”.
compact No newer construct. This attribute has been removed from the HTML DOM 1.0.
start Newer Construct: Use the CSS property “start”.
li
type Newer Construct: Use the CSS property “list-style-type” or “list-style”.
value Newer Construct: Set the inner text of the element.
hr
align Newer Construct: Use the CSS property “text-align”.
noshade Use the CSS property “color”.
size Newer Construct: Use the CSS property “height”.
width Newer Construct: Use the CSS property “width”.
pre
width Newer Construct: Use the CSS property “width”.
name Newer Construct: Use the attribute “id”.
br
clear Newer Construct: Use the CSS property “clear”.
object
align Newer Construct: Use the CSS property “vertical-align” and “text-align” in the parent tag.
border Newer Construct: Use the CSS property “border”.
hspace Newer Construct: Use the CSS property “padding”.
vspace Newer Construct: Use the CSS property “padding”.
img
name Newer Construct: Use the attribute “id”.
align Newer Construct: Use the CSS alignment properties.
border Newer Construct: Use the CSS property “border”.
hspace Newer Construct: Use the CSS property “padding”.
vspace Newer Construct: Use the CSS property “padding”.
map
name Newer Construct: Use the attribute “id”.
input
align Newer Construct: Use the CSS alignment properties.
legend
name Newer Construct: Use the attribute “id”.
table
align Newer Construct: Set table's CSS properties left-margin and right-margin at "auto" for centering, or right-margin to 0 for right alignment, or the left-margin to 0 for left alignment. (Thanks NewToDev)
bgcolor Newer Construct: Use the CSS property “background-color”.
caption
align Newer Construct: Use the CSS property “text-align”.
tr
bgcolor Newer Construct: Use the CSS property “background-color”.
td, th
nowrap Newer Construct: Use the CSS property “word-wrap”.
bgcolor Newer Construct: Use the CSS property “background-color”.
width Newer Construct: Use the CSS property “width”.
height Newer Construct: Use the CSS property “height”.
* Indicates that the element is not deprecated, but has newer constructs.
Any corrections I will fix.