Single page applications and <form> elements Single page applications and <form> elements ajax ajax

Single page applications and <form> elements


  1. Semantically, using <form> is clearer than <div>.
  2. If you still want your form to work without JavaScript, you'd better choose <form> (since you used the word application, this may not be considered though).
  3. More importantly, it'll be really painful of using <div> if you do care about accessibility.


I think the answer is, no, if you're not going to "submit" a form, there's no need for the <form tag. Very often, our interactive controls are in places that would not be considered a "form" - checkboxes here, select menus there. I think most of them work just fine without a

Accessibility, I don't know anything about.