[thelist] <fieldset> and <legend> vs <h2>

Jonathan Snook jonathan.snook at gmail.com
Wed Jun 27 07:37:54 CDT 2007


On 6/27/07, Bill Moseley <moseley at hank.org> wrote:
> I tend to use fieldsets with every form, even for forms that have a few
> elements.
>
> Is it appropriate to use if the form only has a single field?

My personal opinion is that it should be used for a SET of fields.
It's like programming and storing everything in single element arrays.
It's cumbersome. However, I'd say it's less offensive than my
programming with my arrays example and could be avoided.

On the other hand, creating a unified set of CSS will be easier if
you're consistent with your coding standards. In this case, it'd save
you having to write fieldset/legend styles for most pages and then
form/h2 styles for other pages.

So, there, I've managed to sit on the fence of that discussion well enough. :)

-Jonathan



More information about the thelist mailing list