前端学习(179):表单元素
生活随笔
收集整理的這篇文章主要介紹了
前端学习(179):表单元素
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/ html4/strict.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><title>表單</title></head><body><h1>注冊賬號</h1><form action="regist" method="post">用戶名:<input type="text" name="username" id="username" value="" /><input type="button" name="checkusername" id="checkusername" value="檢查用戶名是否被注冊" /><br />密碼:<input type="password" name="password" id="password" value="" /> <br />確認密碼:<input type="password" name="" id="re_password" value="" /> <br />性別:<input type="radio" name="sex" id="sex_man" value="man" checked="checked" />男 <input type="radio" name="sex" id="sex_woman"value="woman" />女<br />興趣愛好:<input type="checkbox" name="interest" id="ins_football" value="football" />足球 <input type="checkbox" name="interest"id="ins_volleyball" value="volleyball" />排球 <input type="checkbox" name="interest" id="ins_ping-pong" value="ping-pong" />乒乓球<br />選擇頭像:<input type="file" name="file" id="file" value="" /><br /><input type="image" width="80" height="80" src="pic/submit.jpg" alt="我是歌謠"/> <br /><input type="reset" value="重置信息" /> <input type="submit" id="submit" value="注冊賬號" /><input type="hidden" name="regist" id="" value="default" /></form></body>
</html>
運行結果
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的前端学习(179):表单元素的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 机器智能的未来
- 下一篇: 使用xrandr和cvt命令添加自定义的