|
Posted by Steve Pugh on November 24, 2006, 4:58 am
Please log in for more thread options
Jasbird wrote:
> Has the name attribute deprecated?
The name attribute has a long and complicated history. It has existed
for various different elements in various different versions of HTML.
HTML 4.01 adds the name attribute to some elements which didn't have it
in HTML 4.0.
XHTML 1.0 deprecates the name attribute for a, applet, form, frame,
iframe, img, and map elements. But not for button, textarea, select,
input, object, param and meta elements.
XHTML 1.1 removes it entirely from a and map elements.
> I ask this because ASP.NET 2 warns me against using it, says that it has
> been deprecated and doesn't use it (on the client) when creating a radio
> button list.
What version of (X)HTML is your code trying to produce?
> I always thought that a HTML radio button list was made by giving all
> the buttons the same name but different IDs?
Nearly. Same name, different values. IDs are not required for radio
buttons.
Steve
|