Wrox Programmer Forums
|
BOOK: Beginning Web Programming with HTML, XHTML, and CSS This forum is for discussing Jon Duckett's book Beginning Web Programming with HTML, XHTML, and CSS.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Web Programming with HTML, XHTML, and CSS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2004, 11:41 PM
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?

 
Old December 2nd, 2004, 07:32 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

> 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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Call-time pass-by-reference has been deprecated tusharkale Beginning PHP 0 October 9th, 2007 09:32 AM
How to handle several attributes? sebhoff XSLT 2 March 20th, 2007 02:47 AM
Chapter 17, p.568, "Style", deprecated attributes irish_songbird BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 0 October 22nd, 2006 08:41 PM
import org.xml.sax is deprecated sax XML 1 November 17th, 2003 08:35 AM
GenericDataSource Deprecated lizethfc JSP Basics 0 June 5th, 2003 11:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.