案例:html/html5 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE HTML>
2
<html>
3
<body>
4
5
<form action="/example/demo_form.aspx" method="get" id="nameform">
6
姓:<input type="text" name="lname" /><br />
7
名:<input type="text" name="fname" /><br />
8
</form>
9
10
<p>下面的按钮位于 form 元素之外,但仍是表单的一部分。</p>
11
12
<button type="submit" form="nameform" value="Submit">提交</button>
13
</body>
14
</html>