p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Web Programming with HTML, XHTML, and CSS (http://p2p.wrox.com/forumdisplay.php?f=145)
-   -   Deprecated attributes (http://p2p.wrox.com/showthread.php?t=21997)

clm3cv December 1st, 2004 11:41 PM

Deprecated attributes
 
I'm new to this forum and to writing web pages. I've enjoyed the book so far. It appears to be well organized and gives a nice overview of where web programming has been and where it is going. I am hoping to build my site using Strict XHTML but have run into some confusion about deprecated attributes.

For example, the name attribute is marked as deprecated. I'm currently in chapter six, however, and there is a lot of discussion about name/value pairs. It's not clear whether someone writing Strict XHTML should be using id/value pairs instead.

A more general question: If an attribute has been deprecated, is it deprecated for all elements that it is associated with?


richard.york December 2nd, 2004 07:32 AM

> A more general question: If an attribute has been deprecated, is it deprecated for all elements that it is associated with?

No, certainly not.

The name attribute is deprecated for most elements, with the exception of form input elements. The easiest way to find out if something is allowed or not is to look at a document type definition for XHTML strict.

http://www.w3.org/TR/xhtml1/#a_dtd_XHTML-1.0-Strict

Not everything that you might expect to be deprecated really is, for instance there is still some presentational markup allowed in XHTML strict.

HTH!


Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design


All times are GMT -4. The time now is 02:18 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.