Several HTML tags have become deprecated over the years, in other words they are considered old and outdated and no longer used, as there are better ways to achieve the same effect. I have compiled a list of the deprecated elements below and an alternative method to achieve the same effect.
Deprecated HTML Tags:
- <applet> – define an embedded applet.
Use <object> instead. - <basefont> – Defines a default font, color, or size for the text in a page.
Rather use a stylesheet font to assign the relevant attributes. - <center> – Defines centered text.
<div align=”center”>Centered content goes here.</div> is a better alternative. - <dir> – Defines a directory list.
The use of an <ul> unordered list is a better option. - <font> – Defines font, color, and size for text.
Rather define your font and its attributes in the stylesheet. - <isindex> – Defines a searchable index related to a document.
The <form> tag is used in its place. - <menu> – Defines a menu list.
Use an <ul> unordered list or an <ol> ordered list. - <s> and <strike> – Defines strikethrough text.
The use of the stylesheet selector text-decoration: line-through; is a better alternative. - <u> – Defines underlined text.
Use text-decoration: underline; in the stylesheet instead.
Tags: Web Design, Web Development




