While checking my HTML code using the W3 validator
, I encountered an error and warning message:
Line 21, Column 23: The ID menuItem
was first used here.
<li id="menuItem"><a href="#visit">Ten Places to Visit</a></li>
✉ Line 29, Column 25: Duplicate ID menuItem.
<li id="menuItem"><a href="#Wrigley">Wrigley Field</a></li>
Despite trying to remove the id=""
part of the tag so it becomes <li menuItem>
, the attributes of menuItem
are lost.
Is it advisable to overlook this type of error from the validator, or am I not rectifying it correctly?