使用 HTML5 复选框的正确方法
htmljavascriptprogramming scripts更新于 2024/8/23 16:12:17
以下是正确的方法 −
<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>
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

