Re: [WSG] another form question

2008-11-04 Thread David Dorward
tee wrote:
 1) wrap the input inside 'label' is bad practice - so I have not done
 that for years.

No it isn't. Using the for attribute is best practise, but there is no
harm in doing both (unless you need the elements to be separate for
styling purposes).

 2) learned that 'button' is better over the 'input' for submit

No, it isn't. It has more flexibility, but is buggy in Internet Explorer
so you have to apply work arounds. It isn't worth it unless you need the
features provided by the button element.

 3) Will wrapping button inside 'label' is: a) OK - no ill effect
 whatsoever; b) very good; c) bad- never do that.

Entirely pointless - the label for buttons is content of the button
element (or value of the input element).


-- 
David Dorward   http://dorward.me.uk/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



[WSG] another form question

2008-11-03 Thread tee
1) wrap the input inside 'label' is bad practice - so I have not done  
that for years.

2) learned that 'button' is better over the 'input' for submit
3) Will wrapping button inside 'label' is: a) OK - no ill effect  
whatsoever; b) very good; c) bad- never do that.


example 1:
fieldset
legendspanSearch Site/span/legend
   input id=search type=text name=q value= /
  label for=search
 button id=searchbtnSearch/button
/label
 /fieldset

example: 2 (give a label empty tag)
fieldset
legendspanSearch Site/span/legend
   label for=search /label
   input id=search type=text name=q value= /
   button id=searchbtnSearch/button
/fieldset


tee





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***