关闭顶部展开顶部

Web标准之路 勿使用W3C废弃的元素_Web标准教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!
  我们进行CSS网页布局的时候,都知道它需要符合XHTML1.0规范,在Mb5u.com昨天的文章中,向大家介绍了DTD。如果我们在进行CSS网页布局的时候,还在使用被W3C废弃的元素,那就失去了使用CSS的意义,虽然它们可能同样被样式控制。
  在XHTML中不再使用HTML中的一些废弃元素。它们主要有以下一些。
  Elements and attributes that have been deprecated in the most recent version of XHTML, XHTML 1.0.

Elements

<applet></applet>
  The applet element has been deprecated in favor of <object></object>.

<basefont />
  The basefont element has been deprecated in favor of style sheets.

<blackface></blackface>
  The blackface element is a WebTV (MSN TV) element that has been deprecated in favor of style sheets.

<blockquote></blockquote>
  The blockquote element is deprecated in favor of style sheets when used to indent text.

<center></center>
  The center element has been deprecated in favor of style sheets.

<dir></dir>
  The dir element has been deprecated in favor of <ul></ul>.

<embed />
  The embed element has been deprecated in favor of <object></object>.

<font></font>
  The font element has been deprecated in favor of style sheets.

<i></i>
The i element has been deprecated in favor of style sheets.

<isindex />
  The isindex element has been deprecated in favor of the input element and CGI forms.

<layer></layer>
The layer element has been deprecated in favor of style sheets.

<menu></menu>
  The menu element has been deprecated in favor of <ul></ul>.

<noembed></noembed>
  The noembed element has been deprecated in favor of <object></object>.

<s></s>
  The s element has been deprecated in favor of style sheets.

<shadow></shadow>
  The shadow element has been deprecated in favor of style sheets.

<strike></strike>
  The strike element has been deprecated in favor of style sheets.

<u></u>
  The strike element has been deprecated in favor of style sheets.

Attributes

alink
  The alink attribute defines the color of an active link on the Web page. It has been deprecated in favor of style sheets.

align
  Used to align elements vertically and horizontally on the document page, the align attribute has been deprecated in favor of style sheets.

background
  The background attribute is used to define a background image for the element. It has been deprecated in favor of style sheets.

border
  Used to define a border around the element, the border attribute has been deprecated in favor of style sheets.

color
  Used to define the color of the enclosed text, the color attribute has been deprecated in favor of style sheets.

compact
  The compact attribute is used in list tags to create a list that takes up less space. It has been deprecated in favor of style sheets.

face
  Used to define the font face of the enclosed text, the face attribute has been deprecated in favor of style sheets.

height
  Used to define the height of the element, the height attribute has been deprecated in favor of style sheets.

language
  The language attribute is used to define the language used by the script element. It has been deprecated in favor of the type attribute.

link
  The link attribute defines the color of a link on the Web page. It has been deprecated in favor of style sheets.

name
  The name attribute names the element for use with dynamic content, it has been deprecated in favor of the id attribute.

noshade
  The noshade attribute removes the 3-D effect from horizontal rules. It has been deprecated in favor of style sheets.

nowrap
  Used to stop table contents from wrapping, the nowrap attribute has been deprecated in favor of style sheets.

size
  Used to define the size of the enclosed text, the size attribute has been deprecated in favor of style sheets.

start
  The start attribute of list tags defines the starting number of the list. This attribute has been deprecated in favor of style sheets.

text
  The text attribute defines the color of the text on the Web page. It has been deprecated in favor of style sheets.

type
  The type attribute of list tags defines what type of list should be used. This attribute has been deprecated in favor of style sheets.

value
  The value attribute of list tags sets the value of the list item. This attribute has been deprecated in favor of style sheets.

version
  The version attribute defines the version of HTML used by the document. It has been deprecated in favor of DTDs.

vlink
  The vlink attribute defines the color of a visited link on the Web page. It has been deprecated in favor of style sheets.

width
  The width attribute defines the width in pixels of the element. It has been deprecated in favor of style sheets.
  

来源:52CSS//所属分类:Web标准教程/更新时间:2012-06-09
loading.. 评论加载中....
相关Web标准教程
闂佹眹鍩勯崹閬嶆偤閺囶澁缍栭柛鈩冪⊕閳锋帗銇勯弴妤€浜惧銈忕秶閹凤拷
濠电偛顕慨顓㈠磻閹炬枼妲堥柡鍌濇硶婢ф稒淇婇懠顒夆偓婵嬫煟閵忊晛鐏查柟鍑ゆ嫹
濠电姷顣介埀顒€鍟块埀顒勵棑缁辩偛顓兼径瀣閻庣懓瀚竟鍡欐崲娑斾線鏌i姀鈺佺伈闁瑰嚖鎷�
濠电姷顣介埀顒€鍟块埀顒勵棑缁辩偛顓兼径濠勵吋闂佽鍨庨崟顓фК闂佽閰eḿ褍螞濞戙垺鍋夐柨鐕傛嫹
闂備胶枪缁绘劙骞婃惔銊ョ劦妞ゆ帒鍊哥敮鍫曞箹鐎涙ḿ鐭掔€规洘绻堥弫鎾绘晸閿燂拷
闂備胶枪缁绘劙骞婃惔銊ョ劦妞ゆ巻鍋撻柛姘儑缁﹪鏁傞崜褏鐓撻柣搴岛閺呮繈鎯屽▎鎴犵=濞撴艾锕ョ€氾拷
闂備浇銆€閸嬫挻銇勯弽銊р槈闁伙富鍣i弻娑樷攽閹邦亞鑳虹紓浣靛妽濡炶棄顕i妸鈺婃晬婵炲棙鍨电粭锟犳⒑閸濆嫬鈧骞婇幘鑸殿潟闁跨噦鎷�
闂備礁鎼崯鐗堟叏妞嬪海绀婂鑸靛姈閻擄綁鎮规潪鎷岊劅婵炲眰鍊曢湁闁挎繂妫欑粈鈧梺鍛娚戦悧鐘茬暦閹扮増鏅搁柨鐕傛嫹
婵犵妲呴崹顏堝礈濠靛棭鐔嗘俊顖氬悑鐎氱粯銇勯幘瀵哥畺閻庢熬鎷�
濠电姷顣介埀顒€鍟块埀顒勵棑缁辩偛顓奸崶銊ヮ伕濡炪倖鎸荤换鍐偓姘虫珪娣囧﹪顢涘Δ鈧晶鍙夌節椤喗瀚�
婵犵妲呴崹顏堝礈濠靛棭鐔嗘慨妞诲亾鐎规洦鍓熼、娆撳礂閻撳簶鍋撻悽鍛婄厸闁割偅绻勫瓭婵犳鍣幏锟�
婵犵妲呴崹顏堝礈濠靛棭鐔嗘慨妞诲亾闁哄苯鎳橀崺鈧い鎺嗗亾闁宠閰i獮鎴﹀箛闂堟稒顔嗛梻浣告惈鐎氭悂骞忛敓锟�
婵犵妲呴崹顏堝礈濠靛棭鐔嗘慨妞诲亾鐎规洩缍侀獮瀣攽閸偂绱�
濠电姷顣介埀顒€鍟块埀顒勵棑缁辩偛顓兼径濠勭厬闂佺懓鐡ㄧ换鍕敂鐎涙ü绻嗘い鏍殔婢у弶绻濋~顔藉
闂佽楠搁崢婊堝礈濠靛鍋嬮柟鎯版閻鈹戦悩鎻掓殭闁奸潧缍婇弻銈夋嚍閵夈儱顫嶉梺缁樼壄缂嶄礁鐣峰▎鎾存櫢闁跨噦鎷�
UB闂備礁婀辩划顖炲礉濡ゅ懐宓侀柛銉㈡櫆鐎氭岸鎮楀☉娅虫垿锝為敓锟�
闂備浇澹堟ご绋款潖婵犳碍鐒鹃悗鐢电《閸嬫捇鐛崹顔句痪濠电姭鍋撻柨鐕傛嫹
闂佽楠哥粻宥夊垂閸濆嫸鑰块柛銏㈠殰
闂備礁鎲″缁樻叏妞嬪海绀婂璺虹灱閸楁碍绻涢崱妤€顒㈤柛鐐差槹缁绘稓绱欓悩鍝勫帯闂佺ǹ楠忛幏锟�
缂傚倸鍊烽悞锕傛偡閿曞倸鍨傛繝濠傚椤╅攱銇勯幒宥囶槮缂佹彃婀遍埀顒傚仯閸婃繄绱撳棰濇晩闁跨噦鎷�
©2017 www.mb5u.com婵犵妲呴崹顏堝礈濠靛棭鐔嗘慨妞诲亾鐎殿噮鍣i幃鈺呭箵閹烘挸鐦�
闂備浇銆€閸嬫捇鏌熼婊冾暭妞ゃ儻鎷�&闂備礁鎲$敮鎺懳涢弮鍫燁棅闁跨噦鎷�