In many prototype scripting cases, it’s easier to just stick every form item (such as an input or textarea) in its own form tag. Is there anything wrong that could happen from having lots (like 1000) form tags in a page?
In many prototype scripting cases, it’s easier to just stick every form item (such
Share
What do you mean by ‘prototype scripting cases’? How are the forms being submitted?
If each form is its own action, eg. you have lots of separate product listings with different REST
actionURLs, then, yes, a separate form per line is appropriate.If you’re just using controls on their own for scripting, and have no intention of submitting them through the normal HTML form process, you don’t need any
<form>elements at all, just include them bare.(Except in the specific case of radio buttons, which require a
<form>for grouping.)