Html 简明教程
HTML - Deprecated Tags & Attributes
在这篇文章中,我们创建了弃用的标签和属性的列表,其中一些标签和属性仍然能生成你想要的结果,但已经被官方弃用。我们不用再使用指定的标签和属性,相反可以用指定的备选替代方案。
In this article we have created list of deprecated tags and attributes, few of these tags and attributes will still give you the result you want but it has been deprecated by the officials, rather than using mentioned tags and attributes we can use the mentioned alternatives.
弃用的标签和属性是不再有效,已被更新的、符合标准的元素或 CSS 技术替换的标签。虽然大多数浏览器支持弃用的标签,但不建议使用它们,因为它们在将来的版本中很可能被移除。
Deprecated tags & attributes are those tags that are no longer valid to use and have been replaced by more modern, standard-compliant elements or CSS techniques. Eventhough most browsers support deprecated tags, it is not recommended to use them as they are likely to be removed in future versions.
这里给出了一个包含弃用 HTML 标签和属性的完整列表。所有标签已按字母顺序整理,同时提供了它们的等效标签或备用 CSS 选项。
A complete list of deprecated HTML tags and attributes is given here. All the tags have been ordered alphabetically along with their equivalent tag or alternate CSS option.
HTML Deprecated Tags
以下是已弃用的 HTML 标签及其可用的替代选项(如果可用)的列表。
Following is the list of deprecated HTML tags and alternative options if available.
Tag |
Description |
Alternate |
Used to embed the Java applet. |
||
Used for indicating an acronym. |
||
Used to set the default text-color, font-size. |
||
Used to play soundtrack in the background. |
||
Used to increase the font size. |
||
Used to enclose a text to make it blink. |
CSS or JavaScript |
|
Used to set the alignment of the text. |
||
Used to make a list of directory files/folders. |
||
Used for embedding external applications. |
||
Used to change the color, size and style of a text. To know more about the font tag visit this page. |
||
Used to specify the number of rows and columns in frameset wit their pixels. |
||
Used for querying a document through a text field |
||
Used to create a layer that occupies space in the containing text flow. |
||
Used to process Web forms with certificate management systems |
||
<listing> |
Uintended as a way to render HTML code on a page. |
|
Used to position and animate (through scripting) elements in a page |
||
Used for creating a menu list. |
||
Used for defining a menu item for a menu. |
||
Used to create multiple columns of text . |
||
Used to instruct the browser not to break the specified text. |
CSS |
|
Used to handle browsers which do not support the <embed> tag. |
||
Used to handle the browsers which do not support <frame> tag. |
||
Used to render all the text in the document. |
||
Used for passing parameters to an embedded object using <object> tag. |
||
Used to indicate that the text is no longer accurate or correct. |
||
Used to strike a line through the text. |
||
Used to specify a whitespace. |
||
Used to specify teletype text. |
||
Used to create underlined text. |
||
Used to render preformatted text. |
||
Used to divide your browser window into multiple sections where each section can load a separate HTML document. To know more about the frame tag visit this page. |
Use modern layout techniques. |
|
Marquee is a scrolling piece of text displayed either horizontally across. |
CSS |
HTML Deprecated Attributes
以下是弃用的 HTML 属性列表,以及备用选项(如果可用)。
Following is the list of deprecated HTML attributes and alternative options if available.
Attribute |
Description |
Alternate |
Used to specify the alignment of the text-content. |
||
alink |
Used to specify the color of an active link. |
|
background |
Used to specify a background image of the entire web page body. |
|
Used to set the background color of an HTML element. |
||
Used to set the visible border width. |
||
clear |
Indicates how the browser should display the line after the <br /> element |
|
Used to specify the height of the element. |
||
hspace |
Used to specify the number of whitespaces on the left or right side of an object. |
|
language |
Used to specify the language of the elements content. |
|
nowrap |
Used to indicate that the text inside the cell should not wrap. |
|
Used to specify the start value for numbering the list items. |
||
Used to define a color for the text in the document. |
||
Used to specify the type of content associated with an element. |
||
Used to specify the color of a visited link. |
||
vspace |
Used to specify the number of whitespaces. |
|
Used to specify width of the image element. |