本文最后更新于 393 天前,其中的信息可能已经过时,如有错误请发送邮件到 wuxianglongblog@163.com
| <form method="post" action="result.html"> |
| <p> 名字:<input name="name" type="text" > </p> |
| <p> 密码:<input name="pass" type="password" > </p> |
| <p> |
| <input type="submit" name="Button" value="提交"/> |
| <input type="reset" name="Reset" value="重填“/> |
| </p> |
| </form> |
| <input type="text" name="fname" value="text"/> |
| <input type="text" name="userName" value="用户名" size="30" maxlength="20" /> |
| <input type="password " name="pass" size="20" /> |
| <input name="gen" type="radio" value="男" checked />男 |
| <input name="gen" type="radio" value="女" />女 |
| <input type="checkbox" name="interest" value="sports"/>运动 |
| <input type="checkbox" name="interest" value="talk" checked />聊天 |
| <input type="checkbox" name="interest" value="play"/>玩游戏 |
| <select name="列表名称" size="行数"> |
| <option value="选项的值" selected="selected">…</option > |
| <option value="选项的值">…</option > |
| </select> |
| <input type="reset" name="butReset" value="reset按钮"> |
| <input type="submit" name="butSubmit" value="submit按钮"> |
| <input type="button" name="butButton" value="button按钮"/> |
| <textarea name="showText" cols="x" rows="y">文本内容 </textarea > |
| <form action="" method="post" enctype="multipart/form-data"> |
| <p><input type="file" name="files" /> |
| <input type="submit" name="upload" value="上传" /></p> |
| </form> |
| <p>请输入你的网址:<input type="url" name="userUrl"/></p> |
| <input type="submit"/> |
| <p>请输入数字:<input type="number" name="num" min="0" max="100" step="10"/></p> |
| <input type="submit"/> |
| <p>请输入数字:<input type="range" name="range1" min="0" max="10" step="2"/></p> |
| <input type="submit"/> |
| <input type="hidden" value="666" name="userid"> |
| <input name="name" type="text" value="张三" readonly> |
| <input type="submit " disabled value="保存" > |
减轻服务器的压力,保证数据的可行性和安全性
| <input type="search" name="sousuo" placeholder="请输入要搜索的关键字"/> |
| <input type="text" name="username" required/> |
| <input type="text" name="tel" required pattern="^1[358]\d{9}" /> |