Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
austin-cheney
· 3y ago · 0 comments
You don’t need named anchors to accomplish the goal of URL fragments. ID attribute values on any element accomplish the same goal.
Comments
[–]
vivegi
3y ago
Yes. 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.