If your link is for binding, just add the id attribute with the same value as name .
If it is intended for an actual link that the user can activate, you need to provide him with "link text", that is, some descriptive text between <a> and </a> .
This is necessary for accessibility, because some users (for example, users from the screen) list all the page links in order to quickly understand it.
As an application developer, if your link is empty, you must remove it, and if necessary (a JS event or so) add the entire full and functional stanza: <a href="...">blabla</a>
(By the way, if you use some kind of JS / AJAX, you should give an overview of the WAI-ARIA concepts).
source share