When testing my code using the w3 html5 validator, I get this warning message:Warning: The name attribute is obsolete. Consider putting an id attribute on the nearest container instead.Question(s):What does the nearest container mean?Is <a> now deprecated?Should I use id instead of name?
Name attribute is obsolete, what is the correct behavior when dealing with anchors?
html5;markup;anchor;w3c validation
[A]re empty placeholder  tags as a  whole deprecated, and anchors can  simply point to any element with an id  instead?I prefer to jump users to heading tags (following MediaWiki's default behavior) where in-page links are needed, but yes, you could address the ID of any element.