HTML and CSS Reference
In-Depth Information
Table 1.3
Discontinued Tags
Deleted Tags
Removed or Replaced
<acronym>
Replaced by
<abbr>
<applet>
Replaced by
<object>
<basefont>
Better handled by CSS
<bgsound>
Replaced by
<audio>
<big>
Better handled by CSS
<blink>
Removed in HTML5
<center>
Better handled by CSS
<dir>
Replaced by
<ul>
<font>
Removed in HTML5
<frame>
Removed in HTML5
<frameset>
Removed in HTML5
<isindex>
Replaced by explicit
<form>
<marquee>
Removed in HTML5
<multicol>
Removed in HTML5
16
<nobr>
Removed in HTML5
<noframes>
Removed in HTML5
<noscript>
Only conforming to HTML syntax
<s>
Better handled by CSS
<spacer>
Removed in HTML5
<strike>
Better handled by CSS
<tt>
Better handled by CSS
<u>
Better handled by CSS
One of the most common discontinued tags is
<center>
, but you can easily center text
using a little CSS, as shown in the following example. Type this text into your text editor, save
it as
CenterMe.html
, and open it in your Web browser.
<!
DOCTYPE HTML
>
<
html
>
<
head
>
<
style
type
=
”text/css”
>
h1 {
text-align:center;
}