HTML日记二(表单应用大全)


最近不想说话

练习了一点,大概是表单的一些基础应用

 1 <html>
 2 <head>
 3 <title>hello</title>
 4 </head>
 5 <body>
 6 <form action="ok.html" method="post"/>
 7 姓名:<input type="text" name="username"/><br/>
 8 密码:<input type="password" name="password"/><br/>
 9 <input type="checkbox" name="chk" value="beijing" checked>北京
10 <input type="checkbox" name="chk" value="shanghai">上海
11 <input type="checkbox" name="chk" value="guangzhou">广州<br/>
12 
13 <input type="radio" name="sex" value="male">14 <input type="radio" name="sex" value="female"><br/>
15 隐藏域的使用:
16 <input type="hidden" name="data" value="ok" /><br/>
17 
18 选择出生地:
19 <select name="address">
20 <option value="sichuan"> 四川
21 <option value="chongqing">重庆
22 <option value="suzhou">苏州
23 </select><br/>
24 
25 留言板:
26 <!--后面的/textarea不能忘掉-->
27 <textarea name="myTextArea" cols="40" rows="10"></textarea><br/>
28 
29 上传文件:
30 <input type="file" name="myFile"><br/>
31 
32 <input type="submit" value="提交"><br/>
33 <!--图片按钮-->
34 <input type="image" src="login.png"><br/>
35 <input type="reset" value="重置"><br/>
36 
37 </form>
38 </body>
39 </html>


截图如下---->

原文地址:https://www.cnblogs.com/kyxyes/p/3283779.html