3 ms·
You don’t need named anchors to accomplish the goal of URL fragments. ID attribute values on any element accomplish the same goal.
by austin-cheney 3y ago
You don’t need named anchors to accomplish the goal of URL fragments. ID attribute values on any element accomplish the same goal.
- vivegi 3y agoYes. The name/id choice recommendation has been evolving since the original HTML spec. For modern browsers (in 2023), you are right about the id attribute. Some very old browsers needed the name anchors.