I have been wondering about usage of HTML <form>
tag. I needed it for my <input>
elements that are inside <div>
containers.
<form>
<div id="container1">
<input type="text" name="first" id="name">
</div>
<div id="container2">
<input type="text" name="second" id="surname">
</div>
</form>
Is it correct and natural to do this? would this capture all input elements inside form? If not is there any better way or any other way to achieve this?