目录

HTML5 - 不推荐使用的标签( Deprecated Tags)

不推荐使用的标签

HTML5中不再提供以下元素,CSS可以更好地处理它们的功能 -

标签(元素) 描述
<acronym> 定义首字母缩略词
<applet> 定义一个applet
<basefont> 定义页面的基本字体。
<big> 定义大文本
<center> 定义居中文本
<dir> 定义目录列表
<font> 定义文本字体,大小和颜色
<frame> 定义一个框架
<frameset> 定义一组框架
<isindex> 定义单行输入字段
<noframes> 定义noframe部分
<s> 定义删除线文本
<strike> 定义删除线文本
<tt> 定义电传文字
<u> 定义带下划线的文本

不推荐使用的属性

HTML5没有HTML4中的表示属性,因为CSS可以更好地处理它们的功能。 HTML5中的某些属性根本不再允许在HTML5中完全删除。

以下是删除了属性及其相应的受影响标签(元素)的表格。 永久删除这些属性的元素 -

删除了属性 来自元素
revlink, a
charset link and a
shapea
coordsa
longdescimg and iframe.
targetlink
nohrefarea
profilehead
versionhtml
nameimg
schememeta
archiveobject
classidobject
codebaseobject
codetypeobject
declareobject
standbyobject
valuetypeparam
typeparam
axistd and t
abbrtd and t
scopetd
aligncaption, iframe, img, input, object, legend, table, hr, div, h1, h2, h3, h4, h5, h6, p, col, colgroup, tbody, td, tfoot, th, thead and tr.
alinkbody
linkbody
vlinkbody
textbody
backgroundbody
bgcolor table,tr,td,th和body。
bordertable and object.
cellpaddingtable
cellspacingtable
char col,colgroup,tbody,td,tfoot,th,thead和tr。
charoff col,colgroup,tbody,td,tfoot,th,thead和tr。
clearbr
compact dl,menu,ol和ul。
frametable
compact dl,menu,ol和ul。
frametable
frameborderiframe
hspaceimg and object.
vspaceimg and object.
marginheightiframe
marginwidthiframe
noshadehr
nowrap td和th
rulestable
scrollingiframe
sizehr
typeli, ol and ul.
valign col,colgroup,tbody,td,tfoot,th,thead和tr
width hr,table,td,th,col,colgroup和pre。
↑回到顶部↑
WIKI教程 @2018