Html
来源:互联网 发布:地图指南针软件 编辑:程序博客网 时间:2024/06/04 18:57
表单标签
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>表单标签</title> </head> <body> <form action="#" > 用户名:<input type="text" /><br /> 密码:<input type="password" /><br /> 确认密码:<input type="password" /><br /> 性别:<input type="radio" name="sex"/>男 <input type="radio" name="sex"/>女<br /> 爱好:<input type="checkbox" name="hobby"/>钓鱼 <input type="checkbox" name="hobby"/>打电动 <input type="checkbox" name="hobby"/>写代码<br /> 头像:<input type="file" /><br /> 籍贯:<select name="province"> <option>--请选择--</option> <option>北京</option> <option>上海</option> <option>广州</option> </select><br /> 自我介绍: <textarea> </textarea><br /> 提交按钮:<input type="submit" value="注册"/><br /> 普通按钮:<input type="button" value="zhuce"/><br /> 重置按钮:<input type="reset" /> </form> </body></html>
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>表单标签属性介绍</title> </head> <body> <form action="#" method="get"> 隐藏字段:<input type="hidden" name="id" value="" /><br /> 用户名:<input type="text" name="username" readonly="readonly" value="zhangsan" size="40px" maxlength="5" placeholder="请输入用户名"/><br /> 密码:<input type="password" name="password" required="required"/><br /> 确认密码:<input type="password" name="repassword"/><br /> 性别:<input type="radio" name="sex" value="男"/>男 <input type="radio" name="sex" value="女" checked="checked"/>女<br /> 爱好:<input type="checkbox" name="hobby" value="钓鱼"/>钓鱼 <input type="checkbox" name="hobby" value="打电动"/>打电动 <input type="checkbox" name="hobby" value="写代码" checked="checked"/>写代码<br /> 头像:<input type="file" name="file"/><br /> 籍贯:<select name="province"> <option>--请选择--</option> <option value="北京">北京</option> <option value="上海" selected="selected">上海</option> <option value="广州">广州</option> </select><br /> 自我介绍: <textarea name="zwjs"> </textarea><br /> 提交按钮:<input type="submit" value="注册"/><br /> 普通按钮:<input type="button" value="zhuce"/><br /> 重置按钮:<input type="reset" /> </form> </body></html>
阅读全文
0 0
- html
- html
- html
- HTML
- HTML
- html
- html
- html
- html
- HTML
- HTML
- Html
- html
- HTML
- html
- HTML
- HTML
- HTML
- Block
- 金币(积分)商城架构漫谈
- 逻辑推理题
- Hadoop测试
- MAC 升级node.js的快捷方法
- Html
- 删除有序数组中的重复元素,返回数组的新长度,但允许最大重复次数为2
- jetty与tomcat的区别
- java基础——流程控制(选择结构)switch语句
- SharePoint 2016 CU安装失败,"Exception: The upgraded database schema doesn't match the TargetSchema"的解决方案
- es6中的class类
- 【swift】固定在页面底端的按钮
- HTTP协议入门
- JAVA多线程--信号量(Semaphore)