homepage Welcome to WebmasterWorld Guest from 54.226.0.225
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
<legend> required in very simple form
page doesnt need it
benihana




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

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?

 

penders




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

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?

benihana




msg:3594048
 1:25 pm on Mar 7, 2008 (gmt 0)

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!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved