表单提交,以及标注。
生活随笔
收集整理的這篇文章主要介紹了
表单提交,以及标注。
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title></title>
6 </head>
7 <body>
8 <form action="http://www.miaov.com">《提交以后的網(wǎng)站》
9 <p>
10 <label for="user_name">用戶名:</label>《label是標(biāo)注的標(biāo)簽》
11 <input type="text" name="user_name" value="" id="user_name" disabled="disabled" />《disabled=“disabled的時(shí)候名字就不能修改”》
12 </p>
13 <p>
14 <label for="pw">密碼:</label>
15 <input type="password" name="password" value="" id="pw" />
16 </p>
17 <p>
18 <label for="">性別:</label>
19 <input type="radio" name="sex" value="men" checked="checked" />男《checked=“checked”這句話就是必須選的意思,自動(dòng)勾選了》
20 <input type="radio" name="sex" value="women" />女
21 </p>
22 <p>
23 <label for="">興趣:</label>
24 <input type="checkbox" name="xingqu" value="chi" checked="checked" />吃
25 <input type="checkbox" name="xingqu" value="shuijiao" />睡覺(jué)
26 <input type="checkbox" name="xingqu" value="dadoudou" />打豆豆
27 </p>
28 <p>
29 <input type="submit" />
30 <input type="reset" />
31 </p>
32 </form>
33 </body>
34 </html>
?
轉(zhuǎn)載于:https://www.cnblogs.com/hduhdc/p/5232164.html
總結(jié)
以上是生活随笔為你收集整理的表单提交,以及标注。的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 《从零开始学Swift》学习笔记(Day
- 下一篇: linux cron计划任务