Y
Hacker News
new
|
ask
|
show
|
jobs
by
austin-cheney
1099 days ago
You don’t need named anchors to accomplish the goal of URL fragments. ID attribute values on any element accomplish the same goal.
1 comments
vivegi
1099 days 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.
link