Topic: Radio buttons in XHTML |
|
---|---|
Author | Thread |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 11-23-2002 21:58
In HTML 4, when you wanted to have some radio buttons, you'd do this... |
Maniac (V) Inmate From: under the bed |
posted 11-23-2002 23:25 |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 11-23-2002 23:51
Hmm. I thought that name was deprecated in favor of ID. |
Paranoid (IV) Inmate From: Milwaukee |
posted 11-24-2002 03:31
As far as I know, "name" is the variable that gets passed via GET or POST, while "id" is the DOM handle. So you could have several things with the same name, if you wanted them to pass the same variable, but you could give them different IDs for dHTML purposes. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 11-24-2002 06:28
I think it depends on the DOCTYPE you're using. Using the transitional DOCTYPE, this validates correctly: code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 11-24-2002 07:16
Well, I'm looking for the strict XHTML doctype to work =) |
Bipolar (III) Inmate From: Cold Sweden |
posted 11-24-2002 11:55 |