源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> </head> <body> <form action="demo_form.asp" method="get"> <input type="checkbox" name="vehicle" value="Bike"> 我有一辆自行车<br> <input type="checkbox" name="vehicle" value="Car" checked> 我有一辆汽车<br> <input type="submit" value="Submit"> </form> </body> </html>
运行结果