HTML验证器属性错误

时间:2016-11-20 07:29:32

标签: html

HTML validator(链接到外部网站。)在我的表单HTML上提供以下错误类型,但是下面的代码看起来很好;请建议我是否正在寻找明显的事情:

  • 元素输入上属性类型的错误值无线电: input type =“radio”name =“customer”value =“new”checked aria-checked =“true”aria-labelledby =“print”role =“radiogroup”aria-required =“false”
  • 此时元素输入上不允许检查属性:input type =“radio”name =“customer”value =“new”checked aria-checked =“true”aria-labelledby =“ print“role =”radiogroup“aria-required =”false“
  • 此时元素输入上不允许检查属性aria :input type =“radio”name =“customer”value =“new”checked aria-checked =“true”aria-labelledby =“print”role =“radiogroup”aria-required =“false”

Jsfiddle:https://jsfiddle.net/019fzygc/

<legend>Survey</legend>
            <p id="repeat">Have you ordered from this site before?</p>
            <label><input type="radio" name="customer" value="new" checked aria-checked="true" aria-labelledby="print" role="radiogroup" aria-required="false"> No</label>
            <label><input type="radio" name="customer" value="existing" aria-labelledby="print" aria-checked="false" role="radiogroup" aria-required="false"> Yes</label>

编辑:我在这里的代码中没有使用ul / li,这与以下建议的问题不同。

0 个答案:

没有答案