代码示例:(标识:eg_html5_input_form)
<!DOCTYPE HTML>
<html>
<body>

<form action="/index/demo/form_current.html" method="get" id="form1">
First name: <input type="text" name="fname" /><br />
<input type="submit" value="提交" />
</form>

<p>下面的 "Last name" 字段位于 form 元素之外,但仍然是表单的一部分。</p>

Last name: <input type="text" name="lname" form="form1" />

</body>
</html>
运行结果: