There are 2 known patterns to build a link that has the sole purpose to run JavaScript code:
<a href="#" onclick="alert('Clicked!'); return false;">Run JavaScript Code</a>
and
<a href="javascript:void(0)" onclick="alert('Clicked!'); return false;">Run JavaScript Code</a>
The goal of this rule is to ban such patterns in order to keep on supporting browsing with JavaScript disabled.