复选框允许用户在回答一个问题时选择一个或多个选项
<!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>