A Discussion on Deprecated Elements in XHTML
Older XHTML tags that have been superseded by other more functional or flexible alternatives are declared as deprecated elements by the World Wide Web Consortium (What’s a deprecated tag/attribute?). The reason for declaring many presentational elements deprecated is a desire for a clear separation between document structure and the presentation of the document (Avoid deprecated features of W3C technologies). Many presentational elements and attributes are being deprecated in favor of style sheets, which allow authors to suggest a presentation with more flexibility, without the sacrifice of accessibility (HTML 4 Deprecated Features). Web browsers may temporarily support deprecated tags, but eventually these elements are likely to become obsolete and will not be supported in the future. Because of this web developers should get in the habit of not employing these tags when developing web pages and to use the elements and style sheets that have been set up to replace them. The following text will give examples of 10 XHTML tags that have been declared deprecated, a description of the function of these tags, and the elements that have been created to replace them.
The directory list element (dir) has been deprecated in favor of the unordered list (ul) element.
The applet element, which defines an embedded applet on a web page, has been deprecated in favor of the object tag.
The font element, which defines the font face, size and color, has been deprecated in favor of font style sheets.
The basefont element has also been deprecated in favor of font style sheets.
The strike element (s or strike), which defines strike through text, has been deprecated in favor of text style sheets.
The center element, which is used to center text horizontally, has been deprecated in favor of the division (div) tag and style attribute.
The underline element (u), which defines underlined text, has been deprecated in favor of text style sheets.
The isindex element, which defines a single-line text input on a web page, has been deprecated in favor of the input tag.
The menu element, which defines a menu list, has been deprecated in favor of the unordered list (ul) and ordered list (ol) tags.
The blackface element, which is a WebTV element that displays text as double-weight bold, has been deprecated in favor of style sheets.
Deprecated features are sure to become obsolete in future versions of XHTML. There is already a version of XHTML, XHTML 1.0 Strict, that does not employ the use of deprecated elements and attributes (XHTML 1.0 Deprecated Features). It is important for a web developer to know which tags have been declared deprecated so as not to develop web pages that, if so employing such tags, may create web pages that will not display when accessed by web browsers that do not support the use of the tags. If possible, a developer might want to replace any deprecated tags in existing web pages that they provide support for. Web developers should get in the practice of using the replacement elements and features instead of deprecated tags to ensure the functionality, accessibility and presentation of the web pages they create.
References
What’s a deprecated tag/attribute?
Retrieved August 13, 2007 from
http://www.codehelp.co.uk/html/deprecated.html
Avoid deprecated features of W3C technologies
Retrieved August 16, 2007 from
http://www.gawds.org/show.php?contentid=241
HTML 4 Deprecated Features
Retrieved August 13, 2007 from
http://htmlhelp.com/reference/html40/deprecated.html
XHTML 1.0 Deprecated Features
Retrieved August 13, 2007 from
http://www.cs.sfu.ca/CC/165/sbrown1/wdgxhtml10/deprecated.html