jimfog Posted February 4, 2013 Share Posted February 4, 2013 Is there any reason I should use the fieldset element/tagand not just use a div class to style different sections of a form. What are the main arguments for using fieldset? As I see, a div will do the job. I am talking about a form where it haves many sections and needs to be styled accordingly so as notto confuse the user. I just want to hear some opinions on the above. Link to comment Share on other sites More sharing options...
jeffman Posted February 4, 2013 Share Posted February 4, 2013 Fieldset lets you have that nifty legend element. It's also more semantic than a plain div. A lot of developers don't care about semantics; I do, and W3C encourages it. Link to comment Share on other sites More sharing options...
Ingolme Posted February 5, 2013 Share Posted February 5, 2013 Fieldset tells the interpretter(browser or search engine) that the form fields within it are related. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now