Deprecated Attributes

Deprecated HTML Attributes (不推荐使用的HTML属性)

The attributes presented below are deprecated, i.e., they are no longer used in the mentioned tags and are replaced by other attributes that you can find in the “Alternate” section of the table. (下面显示的属性已被弃用,即它们不再在上述标记中使用,而是被您可以在表格的“备用”部分中找到的其他属性替换。)

AttributesDescriptionDeprecated inAlternate
alignSpecifies the alignment of the element<caption>, <img>, <table>, <hr>, <div>, <h1>-<h6>, <p>CSS text-align, float and vertical-align properties
alinkSpecifies the color of an active link in a document<body>CSS active Pseudo Class
backgroundSpecifies the background image<body>CSS background-image Property
bgcolorSpecifies the background color<body>, <table>, <tr>, <td>, <th>CSS background-color Property
clearClears any right or left alignments<br>CSS clear Property
compactSpecifies that the list should render smaller than normal<ol>, <ul>
heightSpecifies the height of the element<table>CSS height Property
hspaceSpecifies the whitespace or padding on left or right sides of an element<img>, <object>CSS padding Property
languageSpecifies scripting language<script>The type attribute
linkSpecifies the default color of the links<body>CSS link Pseudo Class
noshadeIt specifies that a horizontal line should render in one solid color (noshaded)<hr>
nowrapSpecifies that the text should not wrap within the table cell<td>, <th>CSS white-space Property
sizeSpecifies the initial width for the input field and a number of visible rows for the select element<basefont>, <font>, <hr>
startSpecifies the starting point of the ordered list<ol>CSS property counter-reset
textSpecifies the color of the text<body>CSS color property
typeSpecifies the type of list<li>CSS list-style-type Property
valueSpecifies the value of the list item<li>
vlinkSpecifies the color of visited links<body>CSS visited Pseudo Class
vspaceSpecifies the whitespace or padding above or below an element<img>,<object>CSS padding Property
widthSpecifies the width of the element<hr>,<pre>,<td>,<th>CSS width Property


请遵守《互联网环境法规》文明发言,欢迎讨论问题
扫码反馈

扫一扫,反馈当前页面

咨询反馈
扫码关注
返回顶部