案例:html案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<form action="/example/html/form_action.aspx">
6
First name:<br>
7
<input type="text" value="Mickey">
8
<br>
9
Last name:<br>
10
<input type="text" name="lastname" value="Mouse">
11
<br><br>
12
<input type="submit" value="Submit">
13
</form> 
14
15
<p>If you click "Submit", the form-data will be sent to a page called "form_action.aspx".</p>
16
17
<p>The first name will not be submitted, because the input element does not have a name attribute.</p>
18
19
</body>
20
</html>