日期:2013-08-30 浏览次数:20756 次
如果我们在进行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