When testing my html code in the W3 validator, I was given this error and warning message:
Line 21, Column 23: The first occurrence of ID menuItem was 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>
However, when I try removing the id="" part of the tag, so it reads <li menuItem> I lose the attributes of menuItem.
Should this type of error from the validator typically be ignored, or am I not correcting it properly?
Using same id multiple times is not valid. Try to use
classinstead ofid(If you are using id to call only style)