html5 表单(三) select/label/fieldset

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>form02</title>
</head>
<body>
    <!-- 下拉列表标签-->
    <form action="" method=>
        <select name="year">
            <option value="1992">1992</option>
            <option value="1993">1993</option>
        </select>
    </form>
    </br>
    <!--得到鼠标焦点 -->
    <label for="username">username </label>
    <input type="text" name="username" id="username"></input>
    </br>
    <label for="cpb">护肤</label>
    <input type="text" name="cpb" id="cpb"></input>
    <fieldset>
        <legend>name</legend>
        <label for="firstname">firstname</label>
        <input type="text" name="firstname" id="firstname"></input>
        <label for="secondname">secondname</label>
        <input type="text" name="lastname" id="secondname"></input>
    </fieldset>
    </br>
    <!-- input name 可写可不写-->
    <fieldset>
        <legend>address1</legend>
        <label for="home address">home address</label>
        <input type="text" id="home address"></input>
        <label for="work address">work address</label>
        <input type="text" name="work address" id="work address"></input>
    </fieldset>

</body>
</html>

这里写图片描述

<h1>注册信息</h1> <form action="action_page.php" method="get"> <label>姓名:</label><input type="text" placeholder="请输入真实姓名"> <br></br> <label>密码:</label><input type="password" placeholder="请输入密码"> <br></br> <label>确认密码:</label><input type="password" placeholder="请输入确认密码"> <br></br> <label>性别:</label> <label><input type="radio" name="gender"> 男</label> <label><input type="radio" name="gender" checked> 女</label> <br></br> <label>居住城市:</label> <select> <option>北京</option> <option>上海</option> <option>广州</option> <option>深圳</option> <option>武汉</option> </select> <h2>教育经历</h2> <label>最高学历:</label> <select> <option>博士</option> <option>硕士</option> <option>本科</option> <option>大专</option> </select> <br></br> <label>学校名称:</label><input type="text"> <br></br> <label>所学专业:</label><input type="text"> <br></br> <label>在校时间:</label> <select> <option>2015</option> <option>2016</option> <option>2017</option> <option>2018</option> </select> <br></br> <select> <option>2019</option> <option>2020</option> <option>2021</option> <option>2022</option> </select> <br></br> <h2>工作经历</h2> <label>公司名称:</label><input type="text"> <br></br> <label>工作描述:</label> <br> <textarea></textarea> <br></br> <input type="checkbox"><label>已阅读并同意以下协议:</label> <ul> <li><a href="#">《用户服务协议》</a></li> <li><a href="#">《隐私政策》</a></li> </ul> <br></br> <button>免费注册</button> <button type="reset">重新填写</button> </form>
最新发布
04-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值