New answers tagged

4

In the old days, you used <a name="whatever"> if you wanted another link to jump to a particular point on the screen. Nowadays (for a long time actually) we use the "id" attribute.


2

You could imagine that some Javascript code is dynamically changing the DOM to add that missing href= attribute dynamically at runtime.


1

W3Schools.com says: In HTML 4.01, the tag could be either a hyperlink or an anchor. In HTML5, the tag is always a hyperlink, but if it has no href attribute, it is only a placeholder for a hyperlink. I recommend against using an <a> tag without an href as a placeholder. Better to use <u> tags so that the broken links show up ...



Top 50 recent answers are included