New answers tagged


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.


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

1 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