html5 表单(三) select/label/fieldset

来源:互联网 发布:南风知我意2书包网 编辑:程序博客网 时间:2024/06/05 14:47
<!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>

这里写图片描述

1 0