When we were doing CSS web page layout, we all knew that it needed to comply with the XHTML1.0 specification. In VeVb.com's article yesterday, we introduced DTD to you. If we are still using elements that are discarded by W3C when we are doing CSS web page layout, it will lose the meaning of using CSS, although they may also be style-controlled.
Some discarded elements in HTML are no longer used in XHTML. They mainly have the following.
ElementsandattributesthathavebeendeprecatedthemostrecentversionofXHTML,XHTML1.0.
Elements <applet></applet>Theappletelementhasbeendeprecatedinfavorof<object></object>.
<basefont/>The basefontelementhas beendeprecated infavorofstylesheets.
<blackface></blackface>Theblackface elementisaWebTV (MSNTV) element thathas beendeprecated infavorofstylesheets.
<blockquote></blockquote>Theblockquotelementis deprecated infavorofstylesheets whenusedtoindenttext.
<center></center>Thecenterelementhas beendeprecated infavorofstylesheets.
<dir></dir>Thedirelementhas beendeprecated infavorof<ul></ul>.
<embed/Theembedelementhasbeendeprecatedinfavorof<object></object>.
<font></font>Thefontelementhas beendeprecated infavorofstylesheets.
<i></i>Theielementhas beendeprecated infavorofstylesheets.
<isindex/>The is index element has been preceded in the favor of the input element and CG Iforms.
<layer></layer>Thelayerelementhas beendeprecated infavorofstylesheets.
<menu></menu>Themenuelementhasbeendeprecatedinfavorof<ul></ul>.
<noembed></noembed>Thenoembedelementhasbeendeprecatedinfavorof<object></object>.
<s></s>Theselementhas beendeprecated infavorofstylesheets.
<shadow></shadow>Theshadowelementhas beendeprecatedinfavorofstylesheets.
<strike></strike>Thestrikeelementhas beendeprecated infavorofstylesheets.
<u></u>Thestrikeelementhas beendeprecated infavorofstylesheets.
Attributes alinkThelinkattribute defines the colorofanactivelinkon the Webpage.Ithas beendeprecated infavorofstylesheets.
alignUsed to alignelements vertically and horizontally on the docs page, thealignattribute has been preceded infavorof stylesheets.
backgroundThe background aid isused to define fine a background ground image fortheelement.Ithas beendeprecated infavorofstylesheets.
borderUsed to define fine aborderaround theelement, theborderattributehas beendeprecated infavorofstylesheets.
colorUsed to define the coloro over the closed text, the coloro over the coloro over the closed text, the coloro attribute has been deprecated in the fashion sheets.
compactThe compactattribute isusedinlisttagstocreatealist thattakesuplesspace.Ithas beendeprecatedinfavorofstylesheets.
faceUsed to define the font face of the closed text, the face attribute has been deprecated in favorof stylesheets.
heightUsed to define the height of the element, the height attribute has been deprecated in favor style sheets.
languageThelanguageattribute isused to define the language used by thescriptelement.Ithas beendeprecated infavorofthetypeattribute.
linkThelinkattribute defines the colorofalinkon the Webpage.Ithas beendeprecated infavorofstylesheets.
nameThe name attribute name the element foruse with dynamic content, ithas be ended preceded in favor of theidattribute.
noshadeThenoshadeattributeremovesthe3-Deffectfromhorizontalrules.Ithas beendeprecated infavorofstylesheets.
nowrapUsed to stoptable contents from wrapping, thenowrapattribute has been preceded infavorofstylesheets.
sizeUsed to define finenethesize of theenclosed text, thesizeattribute has been deprecated in favorof stylesheets.
startThestartattribute of list tags define the starting number of thelist. Thisattribute has been deprecated in favorof stylesheets.
textThe textattribute defines the colorofthetextontheWebpage.Ithas beend preceded infavorofstylesheets.
typeThetypeattributeoflisttags defineswhattypeoflist should beused.Thisattributehasbeendeprecatedinfavorofstylesheets.
valueThe value attribute of list tags setsthevalue of thelistitem.This attribute has been preceded infavorofstylesheets.
VersionTheversionattribute defines theversion for HTML Lused by thedocument.Ithas beendeprecated infavorofDTDs.
vlinkThevlinkattribute defined finesthecolorofavisitedlinkontheWebpage.Ithas beendeprecated infavorofstylesheets.
widthThe width that provides the width that defines the width that pixels for the element. Itas are deprecated in favorof stylesheets.