案例:html5案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE HTML>
2
<html>
3
<body>
4
5
<form action="/example/html/form_action.aspx" method="get" id="user_form">
6
First name:<input type="text" name="fname" />
7
<input type="submit" />
8
</form>
9
10
<p>下面的输入域在 form 元素之外,但仍然是表单的一部分。</p>
11
12
Last name: <input type="text" name="lname" form="user_form" />
13
14
</body>
15
</html>