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 discarded by W3c when we are laying out the css web page, it will lose the meaning of using css, although they may also be controlled by styles.
Some discarded elements in html are no longer used in xhtml. They mainly have the following.
elementsandattributesthhavebeendeprecatedthemostrecentversionofxhtml,xhtml1.0.
Elements <applet></applet>theappletelementhasbeendeprecatedinfavorof<object></object>.
<basefont/>thebasefontelementhas beendeprecatedinfavorofstylesheets.
<blackface></blackface>theblackface elementisawebtv(msntv)element thathas beendeprecatedinfavorofstylesheets.
<blockquote></blockquote>theblockquotelementis deprecated infavorofstylesheets whenusedtoindenttext.
<center></center>thecenterelementhas beendeprecated infavorofstylesheets.
<dir></dir>thedirelementhas beendeprecatedinfavorof<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 cgiforms.
<layer></layer>thelayerelementhas beendeprecated infavorofstylesheets.
<menu></menu>themeelementhas beendeprecatedinfavorof<ul></ul>.
<noembed></noembed>thenoembedelementhasbeendeprecatedinfavorof<object></object>.
<s></s>Theselementhas are ended preceded infavorofstylesheets.
<shadow></shadow>theshadowelementhas beendeprecatedinfavorofstylesheets.
<strike></strike>thestrikeelementhas beendeprecated infavorofstylesheets.
<u></u>thestrikeelementhas beendeprecated infavorofstylesheets.
attributes alinkthealinkattribute defines the colorofanactivelinkonthewebpage.ithas beendeprecated infavorofstylesheets.
alignused toalignelements vertically and horizontally on the document page, thealignattribute has been preceded infavorof stylesheets.
backgroundthebackgroundattribute isused to define fine a background groundmager 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.
compactthecompactattribute isusedinlisttagstocreatealist thattakesuplesspace.ithasbeendeprecatedinfavorofstylesheets.
faceused to define the font face of theen 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.
languagethelanguage attribute isused to define finenethelanguage used by thescriptelement.ithas beend preceded infavorofthetypeattribute.
linkthelinkattributed defines thecolorofalinkonthewebpage.ithasbeendeprecated infavorofstylesheets.
namethenameattribute name theelement foruse with dynamic content, ithas be ended preceded in favor of theidattribute.
noshadethenoshadeattributeremovesthe3-deffectfromhorizontalrules.ithasbeendeprecatedinfavorofstylesheets.
nowrapused tostoptable contents from wrapping, thenowrapattributehas beendeprecated infavorofstylesheets.
sizeused to define finenethesize of theenclosed text, thesizeattribute has been deprecated infavorofstylesheets.
startthestartattribute of list tags define the starting pointing number of thelist.thisattribute has been deprecated infavorof stylesheets.
textthetextattribute defines the colorofthetexttonthewebpage.ithas beend preceded infavorofstylesheets.
typethetypeattributeoflisttags defines whattypeoflist should be used.thisattributehasbeendprecatedinfavorofstylesheets.
valuethevalue attribute of list tags setsthevalue of thelistitem.thisattribute has been preceded infavorofstylesheets.
Versiontheversionattribute defines theversion for htmlused by thedocument.ithas beendeprecated infavorofdtds.
vlinkthevlinkattributed defines thecolorofavisited linkonthewebpage.ithas beendeprecated infavorofstylesheets.
widththewidthattribute defines thewidthinpixelsoftheelement.ithas beend preceded infavorofstylesheets.