homepage Welcome to WebmasterWorld Guest from 54.167.174.90
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3593984 posted 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

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



 
Msg#: 3593984 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3593984 posted 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