3 ms·
> Browser do it based on name="" on anchor tags not ID Fragment identifiers can refer to elements by ID; this has been supported by browsers for over a decade
by re 8y ago
> Browser do it based on name="" on anchor tags not ID
Fragment identifiers can refer to elements by ID; this has been supported by browsers for over a decade and is the preferred way to specify a target: https://www.w3.org/TR/html4/struct/links.html#h-12.2.3 https://www.w3.org/TR/html4/struct/links.html#h-12.2.3
In fact, `<a name="">` is now considered obsolete: https://www.w3.org/TR/html5/obsolete.html#obsolete https://www.w3.org/TR/html5/obsolete.html#obsolete
- throwaway2016a 8y agoThank you. That is good to know. I really appreciate this info and the links. I'll file it under "things I learned 20 years ago that are now obsolete :("