Re: [WSG] Semantic Form - Person's Title
Richard Czeiger wrote: Can I get a consensus that this is actually the right way to do it? It feels right, but I'd like the opinion of my venerable peers :o) Looks right to me. Note that in a large site with a lot of form pages (online banking, for example) putting meaningful IDs for all the inputs is wasted effort. They just need to be unique and to correlate with the appropriate label. For speed, I use sequentially numbered IDs for radios or checkboxes; r1, r2, r3. I find it makes the process much faster on autopilot, as it were. Otherwise you spend at least half your time thinking up names that don't suck... If the other inputs already have meaningful ids (Dreamweaver can insert then automatically when you name them, for instance) I'd use the default ones, otherwise I'd use something like t1, t2, t3 and so on for those too. Cheers Ian -- _ zStudio - Web development and accessibility http://zStudio.co.uk Snippetz.net - Online code library File, manage and re-use your code snippets links http://snippetz.net ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Semantic Form - Person's Title
!ELEMENT FIELDSET - - (#PCDATA,LEGEND,(%flow;)*) -- form control group -- Looks like it's required to me and it's the same in both Strict and Transitional DTDs. I'm looking at the XHTML 1.0 Strict DTD right now and I see: !ELEMENT fieldset (#PCDATA | legend | %block; | form | %inline; | %misc;)* I know it was required in HTML 4.01, but it looks optional in XHTML. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Semantic Form - Person's Title
Ummm, mickey - just spotted the fact that you have multiple identical IDs How does this work? Certainly won't validate.. R :o) - Original Message - From: Micky Mourelo [EMAIL PROTECTED] To: wsg@webstandardsgroup.org Sent: Wednesday, March 15, 2006 8:08 PM Subject: Re: [WSG] Semantic Form - Person's Title Hi Richard, I looked at your example. You need not use a fieldset for every input. All you have to do is put the input inside the label, set the label to block and a margin-left to the input; and save the fieldset for a real field set. As for the title (Mr, Ms. etc) the thing to do would be: fieldset class=radiooptionslegendTitle/legend label for=fieldinput type=radio id=field name= /abbr title=MisterMr./abbr/labellabel for=fieldinput type=radio id=field name= /abbr title=MissMs./abbr/label /fieldset In this case you would set the labels to inline. But in reality I would recommend either forgetting about the legend (p?), almost impossible to style, or to position:absolute it; not that problematic. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Semantic Form - Person's Title
To Richard Czeiger: That's one of the problems of copy paste :o) anyway, I thought it was obvious that my code was just an example, maybe should have preceeded it with pseudo-code, but just in case: never leave name= in blank and never use a field id for a field :op. This discussion is getting old. Legends are optional from XHTML 1.0 on and the for attribute is an aid for ie users, so use it since it is not wrong (maybe just redundant, but not wrong in any way) to use it at all. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Semantic Form - Person's Title
Sorry Mickey - didn't mean to knit-pick, but what you're saying is that it should look something like this? fieldset class=radio legendTitle/legend label for=titleMrinput type=radio id=titleMr name=title value=Mr /abbr title=MisterMr/abbr/label label for=titleMrsinput type=radio id=titleMrs name=title value=Mrs /abbr title=MissusMrs/abbr/label label for=titleMissinput type=radio id=titleMiss name=title value=Miss /abbr title=MissMs/abbr/label /fieldset Can I get a consensus that this is actually the right way to do it? It feels right, but I'd like the opinion of my venerable peers :o) Now just have to figure out a way to style the legend properly. Cheers, Richard - Original Message - From: Micky Mourelo [EMAIL PROTECTED] To: wsg@webstandardsgroup.org Sent: Friday, March 17, 2006 4:38 AM Subject: Re: [WSG] Semantic Form - Person's Title To Richard Czeiger: That's one of the problems of copy paste :o) anyway, I thought it was obvious that my code was just an example, maybe should have preceeded it with pseudo-code, but just in case: never leave name= in blank and never use a field id for a field :op. This discussion is getting old. Legends are optional from XHTML 1.0 on and the for attribute is an aid for ie users, so use it since it is not wrong (maybe just redundant, but not wrong in any way) to use it at all. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Semantic Form - Person's Title
If you a referring to the for/id issue, yes, that is the way. As for the rest of the xhtml depends on what you want to achieve. But looks ok to me. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **