NAME and ID are the old and the new name for the same attribute. If both are defined, they should be equal.
Use id (new) or name (old) ?
- The id attribute shares the same name space as the name attribute when used for anchor names.
- The id attribute can act as more than just an anchor name (e.g., style sheet selector, processing identifier, etc.).
- Some older user agents don't support anchors created with the id attribute.
- The name attribute allows richer anchor names (with entities).
Remove one of the both attribute or make the 2 values of ID and NAME equal
Define the name=id or just id.
BAD <a name="abcdef" id="ghijklm">
GOOD <a name="abcdef" id="abcdefgh">
GOOD <a id="abcdefgh">
W3C Anchor and ID: http://www.w3.org/TR/html4/struct/links.html#anchors-with-id
W3C ID definition: http://www.w3.org/TR/html4/struct/global.html#adef-id