Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
类型的Html无效值_Html_Checkbox_Types - Fatal编程技术网

类型的Html无效值

类型的Html无效值,html,checkbox,types,Html,Checkbox,Types,我正在处理一段html,代码给了我一个“元素输入属性类型的坏值复选框” <input type="checkbox" id="show-menu" role="button"> <label for="show-menu" class="show-menu">Show Menu</label> 显示菜单 任何帮助都将不胜感激 删除角色属性 <input type="checkbox" id="show-menu" name="you

我正在处理一段html,代码给了我一个“元素输入属性类型的坏值复选框”

    <input type="checkbox" id="show-menu" role="button">
    <label for="show-menu" class="show-menu">Show Menu</label>

显示菜单
任何帮助都将不胜感激

删除角色属性

<input type="checkbox" id="show-menu" name="yourname"  checked>

使用其中任何一种



检查答案以了解更多信息

检查这个感谢您的回复,但当我运行w3验证时,它仍然给了我“元素输入属性类型的错误值复选框”,我想问题在于您的角色属性。尝试删除它
<input name="name" id="id" type="checkbox" checked>
<input name="name" id="id" type="checkbox" checked="">
<input name="name" id="id" type="checkbox" checked="yes">
<input name="name" id="id" type="checkbox" checked="blue">
<input name="name" id="id" type="checkbox" checked="false">