I tried document.links
and document.anchors
in the dev console on a page, and there were 162 links but 255 anchors. However, they are all <a>
elements.
Up until now, I thought that links and anchors were exact synonyms (as long as they both referred to <a>
tags). What is the difference technically and or semantically?