Introduction: Deprecated Tags
Over the years, web page development has evolved and expanded. As HTML has evolved, some elements are now outdated. These are called deprecated elements or attributes. Most browsers can still display these deprecated commands. However, obsolete elements and attributes may no longer work in some browsers. Whenever possible, avoid deprecated tags in your work.
Here is a partial list of deprecated tags: basefont, center, font, s, strike, and u.
Here are some commonly used deprecated tags. Most of these have alternatives using styles.
WHENEVER POSSIBLE, use CSS rather than tags! We'll discuss why when CSS is introduced in the next section.
Deprecated Version
<p align="center"> <font face="Arial" size="2" color="green"> Hello </font> </p>
Conveyed with Style Sheet
p {
font-family: Arial; font-size=100%; color: green; text-align: center;
}