Because of some JavaScript/CSS rules I have, I cannot just wrap these two divs in a form tag and be done with it.
So, I am wondering if the below HTML is considered valid?
<div id="tab1">
<form>
<input type="text" name="whatever" />
</div>
<div id="tab2">
<input type="submit" value="Submit" />
</form>
</div>
No. This is not valid HTML/XML.
Even worse, it will be parsed as: