Re: Name attribute

On Wed, 9 Feb 2005, David Dorward wrote:

> > Isn't it so that all of the name attributes were removed in xhtml?
>
> No. A number have, and some have been deprecated, but there are still
> name attributes in the specification. They are rather essential, for
> example, for naming form controls.

Indeed. There is a common confusion around this issue, perhaps caused by
some less than perfect formulations in specifications and tutorials.

The rules for name attributes are almost the same in XHTML 1.0 as in HTML
4.01. However, for form and img attributes, the name attribute does not
exist in XHTML 1.0, at least not in the DTDs, which are what matters in
validation. Note that the prose in the XHTML 1.0 specification does not
say this - in fact, it more or less claims the opposite.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Wednesday, 9 February 2005 11:54:51 UTC