复选框

复选框允许用户在回答一个问题时选择一个或多个选项

<!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>选择正确选项</div>
        <form action="http:/www.example.comprofile,php">
            <p>
                <br />
                <input type="checkbox" name="service" value="itunes" checked="checked" />第一个
                <input type="checkbox" name="service" value="lastfm" />第二个
                <input type="checkbox" name="service" value="spotify" />第三个
            </p>
        </form>
    </body>
</html>

 

posted @ 2018-07-26 17:11  梦人亭  阅读(130)  评论(0编辑  收藏  举报