使用HTML5复选框的正确方法
以下是正确的方法-
<input name = "your_name" value = "your_value" type = "checkbox">
示例
这是一个例子-
<!DOCTYPE html>
<html>
<head>
<title>Checkbox Control</title>
</head>
<body>
<form>
<input type = "checkbox" name = "maths" value = "on"> Maths
<input type = "checkbox" name = "physics" value = "on"> Physics
</form>
</body>
</html>