There are a number of tags and attributes which have been deprecated
in HTML 5 or earlier versions which may still work in some browsers.
For backward compatibility with existing documents, the HTML specifications
may even require these deprecated elements and attributes to continue to
be supported by HTML 5 compliant browsers and document processors.
However, when creating web documents conforming
to the HTML 5 specifications, authors should avoid these deprecated HTML tags.
In addition, the following deprecated attributes are no longer included in the HTML 5
specification. Therefore, the following list of attributes should be avoided:
Here are some other things that should be avoided in HTML documents:
|
The <acronym> Tag in HTML 5 |
The <acronym> tag in HTML 5
The <acronym> tag should not be used in HTML 5 because it
is not a valid
HTML
element
in the
HTML 5
specification
(see "<acronym> is not supported in HTML 5. Use <abbr> instead."
or "Authors are to use <abbr> for abbreviations."
in HTML 5 differences from HTML 4).
Acronyms should be enclosed by the
HTML
<abbr> tag. Since some browsers, most notably IE,
do not activate the tool tip to assist the user when the title
attribute appears on the abbr tag, the abbr tag should
be placed inside an <a> tag with the title.
The href attribute on the a tag also allows acronyms to be
disambiguated.
The easiest way to do this is simply look up the HTML code for any acronyms that you want to use
in the acronym directory,
at Acronyms .net.
Examples
<a href="http://www.Acronyms.net/terms/t/Three-Letter-Acronym/" title="Three Letter Acronym">
<abbr>TLA</abbr>
</a>
If you are not sure of the proper spelling of an acronym, you can
search for acronyms based
on the meaning of the acronym
in the Acronym Finder.
then click on the "usage" link for that term and copy-and-paste the code provided.
back to top
|
|
The <applet> Tag in HTML 5 |
The <applet> tag in HTML 5
The <applet> tag should be avoided because it
has been deprecated since HTML version 4.
The <object> tag should be used instead.
back to top
|
|
The <bgsound> Tag in HTML 5 |
The <bgsound> tag in HTML 5
The <bgsound> tag should be avoided because it has been deprecated.
The <audio> tag should be used instead.
back to top
|
|
The <center> Tag in HTML 5 |
The <center> tag in HTML 5
The <center> tag should be avoided because it
has been deprecated since HTML version 4.
back to top
|
|
The <dir> Tag in HTML 5 |
The <dir> tag in HTML 5
The <dir> tag should be avoided because it
has been deprecated since HTML version 4.
back to top
|
|
Font Tags in HTML 5 |
The <font> and <basefont> tags in HTML 5
The <font> and <basefont> tags should be avoided because it
has been deprecated since HTML version 4.
Fonts should be provided using
CSS
rather than the <font> tag.
back to top
|
|
Frame Tags in HTML 5 |
The <frameset>, <frame> and <noframes> tags in HTML 5
Frames should be avoided because they are no longer valid in the HTML 5 specification.
back to top
|
|
Inline Style Tags in HTML 5 |
Styles in HTML 5
The following inline style tags should be avoided because they are not valid in HTML 5:
Styles of elements in HTML documents should be provided using
CSS
rather than inline style tags.
back to top
|
|
The <isindex> Tag in HTML 5 |
The <isindex> tag in HTML 5
The <isindex> tag should be avoided because it
has been deprecated since HTML version 4.
back to top
|
|
The <layer> Tags in HTML 5 |
The <layer> tags in HTML 5
The <layer>
<ilayer> and <nolayer> tags should
be avoided because they have been deprecated.
The <iframe> tag should be used instead.
back to top
|
|
The <listing> Tag in HTML 5 |
The <listing> tag in HTML 5
The <listing> tag should be avoided in any HTML because it
has been deprecated since HTML version 3.2.
The HTML <pre> tag should be used instead.
back to top
|
|
The <marquee> Tag in HTML 5 |
The <marquee> tag in HTML 5
The <marquee> tag should be avoided because it has been deprecated.
back to top
|
|
The <nobr> Tag in HTML 5 |
The <nobr> tag in HTML 5
The <nobr> tag should be avoided because it is not included in the HTML specifications.
White space wrapping should be controlled using the
CSS
white-space property
and line breaks should
be created using the HTML break tag "<br/>".
back to top
|
|
The <embed> Tag in HTML 5 |
The <embed> tag in HTML 5
The <noembed> tag should be avoided because it has been deprecated.
back to top
|
|
The <noscript> Tag in HTML 5 |
The <noscript> tag in HTML 5
The <noscript> tag should be avoided because it is handled differently by different browsers.
back to top
|
|
The <plaintext> Tag in HTML 5 |
The <plaintext> tag in HTML 5
The <plaintext> tag should be avoided in any HTML because it
has been deprecated since HTML version 3.2.
Instead, change all "<" and ">" characters to "<" and "&>"
respectively.
back to top
|
|
The <spacer> Tag in HTML 5 |
The <spacer> tag in HTML 5
The <spacer> tag should be avoided in any HTML because it was
never supported by some browsers (notably Internet Explorer) and has been deprecated.
back to top
|
|
The <xml> Tag in HTML 5 |
The <xml> tag in HTML 5
The <xml> tag should be avoided because it has been deprecated.
The <audio> tag should be used instead.
Note that this <xml> tag, which should
not be used, is not the same thing as the
<xml> declaration
which appears at the very beginning of HTML documents.
back to top
|
|
The <xmp> Tag in HTML 5 |
The <xmp> tag in HTML 5
The <xmp> tag should be avoided in any HTML because it
has been deprecated since HTML version 3.2.
The HTML <pre> tag should be used instead.
back to top
|
|
The accesskey Common Attribute in HTML 5 |
The accesskey common attribute in HTML 5
The accesskey attribute should not be coded on any HTML tags because it has been deprecated.
back to top
|
|
The onreset Event Attribute in HTML 5 |
The onreset event attribute in HTML 5
The onreset attribute should not be coded on any HTML tags because it has been deprecated.
back to top
|