Test 4:outline

A description, as complete as possible, of the list of HTML elements which have been deprecated, and the elements with which they should be replaced.

In many cases where the official W3C recommendations have deprecated HTML elements or attributes, they don't state clearly which replacements to use for those elements. They usually hint as to where you should look, but all too often, you're on your own. And that's where this document comes in, which tries to provide (nearly) all the answers that the W3C recommendations neglect to give.


¹ Not exactly deprecated, but W3C says these elements are discouraged in favor of style sheets.
² Never a part of the official definition of HTML, this element shouldn't be used.
³ Other problems. Not recommended.

Element examples


Example: <a href="next.html" TARGET=SECOND> click </a>

The TARGET attribute isn't deprecated, but it seems to exist only in the loose DTD.
Does anybody know if this is how it's supposed to be and, if so, what one should use for a target in the strict DTD?

Result: (no result available)

Example: <a NAME=FragmentIdentifier></a>

The a as anchor has been deprecated. There is no more need to insert an extra element in the spot you want to use as a jump destination. Just put an id in the element at that position.

Result (e.g.): <h3 id="FragmentIdentifier">Subtitle</h3>

If there doesn't happen to be a element there, use <a>, but stick with the id attribute.


Example: <ACRONYM title="First Online Church of Righteous Equality"> FORCE </ACRONYM>

Has exactly the same meaning as <abbr>.

Result: <abbr title="First Online Church of Righteous Equality"> FORCE </abbr>


Example: <XMP> This is an <element>. </XMP>

Replace this with a <pre> element and replace every & in the content with &amp;, every < with &lt;, and for symmetry purposes, every > with &gt;.
Note: originally, the content of the example was to be 80 characters wide, but since the WIDTH attribute on <pre> elements has been deprecated, unfortunately there's no way to indicate this. There is a CSS3 unit ch, which is the width of the characters in a monospaced font (or the width of the 0 in a proportional font), but this may not make it through to the final version. Currently only the latest Gecko based browsers support it.

Result: <pre> This is an &lt;element&gt;. </pre>