在html5里面,表单元素可以放在表单之外,并通过form属性和表单关联, 通过关联,form表单外的表单元素可以把数据提交
<form action="bbb.php" id="yyy">
姓名:<input type="text" name="name" tabindex="1"><!-- input不是块级 -->
<br>
密码:<input type="password" name="pwd">
<br>
<input type="submit">
</form>
性别:男<input type="radio" name="sex" value="man" form="yyy"><!-- checked默认选中 -->
女<input type="radio" name="sex" value="woman" form="yyy">