Welcome to WebmasterWorld Guest from 54.198.46.95

Forum Moderators: incrediBILL

Message Too Old, No Replies

<legend> required in very simple form

page doesnt need it

     
11:48 am on Mar 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a very simple form consisting of

<label><select><button></label>

I dont need a <legend> - the label makes it clear what its for, but i want to validate in html4 strict.

Any thoughts?

1:13 pm on Mar 7, 2008 (gmt 0)

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



The <legend> is only required where you have a <fieldset>. It provides the caption for the <fieldset>. If you are not grouping multiple elements together with the <fieldset> (ie. just using it for the border effect around a single element) then consider using a <div> container instead?
1:25 pm on Mar 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



dont need the fieldset at all, but had been doing so many big forms that when i came to mark this up i automatically structured it the same. thanks!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month