01-HTML基础与进阶-day5-录像264

09表单.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <form>
        用户名:<input type="text" value="请输入用户名"/><br />
        密码:<input type="password" /><br />
        性别:
             <!--单选框 达到互斥的话 设置相同的name属性值-->
             <input type="radio" name="sex"/><input type="radio" name="sex"/><input type="radio" name="sex"/>未知
             <input type="radio" name="sex"/>人妖
             <br/> 
        爱好:
            <input type="checkbox" />编程
            <input type="checkbox" />money
            <input type="checkbox" />美女帅哥
            <input type="checkbox" />乐于助人<br/>
        个人简介<textarea name="" id="" cols="30" rows="10"></textarea>    <br />
        <select name="" id="">
            <option value="">请选择你所在的城市</option>
            <option value="">南京</option>
            <option value="" selected="selected">上海</option>
            <option value="">杭州</option>
        </select> 

        搜索: <input type="button" value="搜索"/>
        <input type="submit" value="注册"/>     
        <input type="reset" value="重置" />
        头像<input type="file" />
        <!--图像按钮-->
        <input type="image" src="img/1.gif" />
    </form>       
</body>
</html>

 

04html5新增表单元素.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <form action="">
        邮箱<input type="email" /> 
        手机 <input type="tel" />
        数字 <input type="number" />
        网址<input type="url" />
        搜索<input type="search" />
        区域 <input type="range" />
        时间 <input type="time" />
        年月日 <input type="date" />
        月份 <input type="month" />
        星期 <input type="week" />
        颜色 <input type="color" />
        <input type="submit" />
    </form>
</body>
</html>

 05html5新增表单属性.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <!--placeholder用户输入文字提示,autofocus页面加载自动获取焦点-->
    用户名 <input type="text" placeholder="请输入用户名" autofocus/>
    上传头像<input type="file" multiple/>
    <form action="">
        姓名<input type="text" autocomplete="on" name="userName" required accesskey="c"/>
        <input type="submit" />
    </form>
</body>
</html>

 

 

转载于:https://www.cnblogs.com/HiJackykun/p/11032065.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值