You should definitely lose the <br /> as it is not semantic and it is a presentational tag really. It does not belong there. You should also be aware of the fact that for a commercial project the below code snippet you posted will not be sufficient, as it does not have enought styling/behavioural hooks in it, so with it you won't be able to achieve the design/behaviour you have been asked to achieve.
On Fri, Oct 17, 2008 at 12:53 AM, <[EMAIL PROTECTED]> wrote: > Thank you everyone for your replies. So it seems the trusty old > traditional > > <filedset> > <llegend>Contact Information</legend> > <label for="name">Name</label><br /> > <input id="name" type="text"> > </fieldset> > > is the way to go to keep all browsers and screen readers happy. I think I > can likely lose the <br /> and replace that with a display: block; on the > label or input. This is the first of a series of questions I will have. I > have the opportunity to rewrite some extremely complex forms for a very > large CMS and I want to make them the best they can be. > > Thanks! > > ----- Original Message ----- > From: "Mike at Green-Beast.com" <[EMAIL PROTECTED]> > To: wsg@webstandardsgroup.org > Sent: Thursday, October 16, 2008 11:07:33 AM GMT -05:00 US/Canada Eastern > Subject: Re: [WSG] labels as input wrappers + <h6> in place of legend > > Hi Ben, > > > I've always used label arount input fields [...] > > I don't think I've ever seen any recommendation against it. > > Here's one for you: > http://green-beast.com/blog/?p=254 > > I haven't been paying attention to this, and someone's probably already > said > it (if so, sorry), but it's also worth noting that only form elements will > be read in a screen reader's forms mode. Being as such, it's better to > style > the legend to look like an h6 rather than substituting it for one. > > Respectfully, > Mike Cherim > > > > > ******************************************************************* > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > ******************************************************************* > > > ******************************************************************* > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > ******************************************************************* > -- Jason Grant BSc, MSc CEO, Flexewebs Ltd. www.flexewebs.com [EMAIL PROTECTED] +44 (0)7748 591 770 Company no.: 5587469 www.twitter.com/flexewebs www.linkedin.com/in/flexewebs ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************