我一直在努力寻找这个 W3C HTML 验证错误的解决方案,而不是我应该做的。我仍然无法弄清楚如何解决这个问题。如果这里有人可以帮助我,那就太好了。
Line 109, Column 27: The for attribute of the label element must refer to a form control.
<label for="location">Location</label>
Line 162, Column 27: The for attribute of the label element must refer to a form control.
<label for="location">Location</label>
代码
<fieldset id="meat">
<legend>Meat Toppings</legend>
<label for="location">Location</label>
<img src="full.png" alt="full">
<img src="left.png" alt="left">
<img src="right.png" alt="right">
<img id="location" src="none.png" alt="none">