Deprecated HTML Tags
Deprecated elements are the ones that are allowed, but not recommended and are being replaced by newer ones. See deprecated HTML tag list with their alternates.
What does "deprecated" mean?
Generally, "deprecated" means something is discouraged. In IT, deprecated elements are those that are still supported by browsers for backward compatibility, but are not recommended for use because they have been replaced by newer, more efficient, or more accessible alternatives. In the context of HTML5, many of these tags are officially "obsolete," meaning they should no longer be used in modern web development.
Deprecated HTML Tag List
| TAG | Description | ALTERNATE |
|---|---|---|
<acronym> | Tells the browser that the characters it contains are an acronym or abbreviation. | <abbr> |
<applet> | Defines embedded Java applet. | <object> |
<basefont> | Specifies the default font size and color of the text. | CSS styles |
<big> | Increases the font size by one conventional unit. | CSS styles |
<blink> | Creates an enclosed text, which flashes slowly. | animation |
<center> | Aligns the content to the centre. | text-align |
<dir> | Defines a list of directory titles. | <ul> |
<font> | Defines the font characteristics. | CSS styles |
<frame> | Defines a specific window, a frame, where we can load another web page. | <iframe> |
<frameset> | Defines the structure of a frame. | <iframe> |
<isindex> | Displays search strings in the current document. | <form> |
<noframes> | Contains an alternate text to be displayed in browsers that do not support frames. | |
<marquee> | Creates a scrolling text or an image. | animation |
<menu> | Defines a list of commands. | <ul> |
<plaintext> | Tells the browser that its content must be displayed as ordinary text without formatting. | <pre> |
<strike> | Defines the strikethrough text. | <del> |
<tt> | Defines text to be displayed in monospace font. | <code> |
Practice
Practice
Which of the following HTML tags are deprecated according to w3docs.com?