Sometimes, experience does bite you, if only gently. I've still been using name attributes in links to create "hash" links (http://www.example.com/index.html#goHere). That's, um, reasonably close to wrong:

The use of <a name ...> is declared as obsolete in HTML5 CR, and it really reflects the shortcomings of early HTML versions. โ€“ Jukka K. Korpela Dec 13 '13 at 14:09

@JukkaK.Korpela I wasn't aware of that. Has just using IDs of elements (e.g. divs) replaced it? Or is there some other mechanism? โ€“ kfb Dec 13 '13 at 14:20

Using id attributes is the recommended way (and has been possible for a long time, all relevant browsers support it). โ€“ Jukka K. Korpela Dec 13 '13 at 14:28

I often look through html to find a good name attribute to link more directly to something I find interesting. Looks like that'll be lots easier now. Phew.

Labels: ,