What is deprecated ?
Defines something which is removed/disabled means deprecated.
Deprecated HTML Tags.
HTML have disabled/removed some tags which are not recommended to use in the current version.
In this case, we can use the new alternative tags instead of using the deprecated tags.
This newly introduced alternative tags will have more functionality enhancements than the old tags.
New alternative tags are recommended to use in HTML.
Here is the list of some of the deprecated tags,
SNO | TAG | Description | ALTERNATE |
---|---|---|---|
1 | <acronym> | Tells the browser that the characters it contains are an acronym or abbreviation. | <abbr> |
2 | <applet> | Defines embedded Java applet. | <object> |
3 | <basefont> | Specifies the default font size and color of the text. It can be used several times inside the <head> or <body> tags. | |
4 | <big> | Increases the font size by one conventional unit. | CSS styles |
5 | <blink> | Creates an enclosed text, which flashes slowly. | animation |
6 | <center> | Aligns the content to the center. | text-align |
7 | <dir> | Defines a list of directory titles. | <ul>; list-style |
8 | <embed> | Used as a container for external applications, multimedia and interactive content that the browser doesn’t understand. | <object> |
9 | <font> | Defines the font characteristics. | CSS styles |
10 | <frame> | Defines a specific window, a frame, where we can load another web page. | <iframe> |
11 | <frameset> | Defines the structure of a frame, number of columns and rows, and how many percent/pixels it will occupy in a frame. | |
12 | <isindex> | Displays search strings in the current document. | <form> |
13 | <noframes> | Contains an alternate text to be displayed in browsers that do not support frames. | |
14 | <marquee> | Creates a scrolling text or an image. | animation, transform |
15 | <menu> | Defines where to open the link. | <ul> |
16 | <plaintext> | Tells the browser, that its content must be displayed as an ordinary text without formatting. | <pre> |
17 | <s> | Defines a text, which is not relevant anymore. | text-decoration |
18 | <strike> | Defines the strikethrough text. | <del>, <s>, CSS styles |
19 | <tt> | Defines text to be displayed in monospace or fixed-width font as it would appear on a teletype or typewriter. | font-family, <kbd>, <code>, <spam> |
20 | <u> | In HTML 4.01 specifies an underlined text. In HTML 5, specifies text that is stylistically different from normal text. | text-decoration |
Tutorial on html !!!
Click to Learn More about – HTML Tutorial for beginners
Deprecated Attributes
Sno | Remove Attributes | From the Elements |
---|---|---|
1 | rev | link, a |
2 | charset | link and a |
3 | shape | a |
4 | coords | a |
5 | longdesc | img and iframe. |
6 | target | link |
7 | nohref | area |
8 | profile | head |
9 | version | html |
10 | name | img |
11 | scheme | meta |
12 | archive | object |
13 | classid | object |
14 | codebase | object |
15 | codetype | object |
16 | declare | object |
17 | standby | object |
18 | valuetype | param |
19 | type | param |
20 | axis | td and t |
21 | abbr | td and t |
22 | scope | td |
23 | align | caption, iframe, img, input, object, legend, table, hr, div, h1, h2, h3, h4, h5, h6, p, col, colgroup, tbody, td, tfoot, th, thead and tr. |
24 | alink | body |
25 | link | body |
26 | vlink | body |
27 | text | body |
28 | background | body |
29 | bgcolor | table, tr, td, th and body. |
30 | border | table and object. |
31 | cellpadding | table |
32 | cellspacing | table |
33 | char | col, colgroup, tbody, td, tfoot, th, thead and tr. |
34 | charoff | col, colgroup, tbody, td, tfoot, th, thead and tr. |
35 | clear | br |
36 | compact | dl, menu, ol and ul. |
37 | frame | table |
38 | compact | dl, menu, ol and ul. |
39 | frame | table |
40 | frameborder | iframe |
41 | hspace | img and object. |
42 | vspace | img and object. |
43 | marginheight | iframe |
44 | marginwidth | iframe |
45 | noshade | hr |
46 | nowrap | td and th |
47 | rules | table |
48 | scrolling | iframe |
49 | size | hr |
50 | type | li, ol and ul. |
51 | valign | col, colgroup, tbody, td, tfoot, th, thead and tr |
52 | width | hr, table, td, th, col, colgroup and pre. |