标签表单控件

在使用表单控件时,可以直接通过表单控件旁边的文字说明它的作用并以保持代码的简洁,但是,每个表单控件最好使用相应的<label>元素来代替简单的文

<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div>TODO write content</div>
        <label>文件上传域:<input type="text" name="age" /></label>
        <br />
          选择框:
        <input id="female" type="radio" name="gender" value="f">
        <label for="female">单选按钮</label>
        <input id="male" type="radio" name="gender" value="m">
        <label for="male">单选按钮</label>
    </body>
</html>

 

posted @ 2018-07-27 15:39  梦人亭  阅读(189)  评论(0编辑  收藏  举报