Welcome to ASP.net Sign
in | Join

in
FAQ - Frequently Asked Questions (forum) General ASP.NET (group) (Entire
Site)

Search

Home

Get
Started

Learn

Downloads

Resources

Atlas

Blogs

Forums

ASP.NET Forums » General ASP.NET »
FAQ - Frequently Asked
Questio... » Deprecated Items and
Newer Constructs

Deprecated Items and Newer
Constructs

Last post 06-09-2006, 5:53 PM by vcsjones. 2
replies.

Sort Posts: Oldest to newest Newest to
oldest Previous
Next

05-20-2006, 8:31 PM

vcsjones

Joined on 04-18-2006

Charleston, SC

Posts
864

Deprecated Items and Newer Constructs

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
/>
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: Use the CSS property
“text-align”.

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.

Cheers,

Kevin

My
Blog

Report
abuse

06-09-2006, 12:21 PM

thuhue

Joined on 09-18-2003

Posts
934

Re: Deprecated Items and Newer Constructs

width
Newer Construct: Use the CSS property
“width”.

Is the
following the correct new construct for the
above?

<td
Style="width:20px;"></td>

Thanks,

Report
abuse

06-09-2006, 5:53 PM

vcsjones

Joined on 04-18-2006

Charleston, SC

Posts
864

Re: Deprecated Items and Newer Constructs

Correct.

Cheers,

Kevin

My
Blog

Report
abuse

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement
Questions/Problems with
www.asp.net? | Interested in Advertising with us?
| Visit
our Hoster: OrcsWeb | Ads
Served By: BanManPro