I typically use divs to nest my elements.
However, Dustin Diaz mentioned using the fieldset in this article.
http://www.dustindiaz.com/focus-the-user/
When do you use fieldset instead of divs, and how does it help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
fieldsethas semantic meaning, to hold form elements. Adivdoes not have this meaning.Also, by default, browsers can render it more suited as a form – i.e. when you use the
legendchild offieldset, you can get a title for yourfieldsetrendered by the browser for you.