Prefered way to display anchors that don't need an href?

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-06-16T09:06:43Z Indexed on 2010/06/16 9:12 UTC
Read the original article Hit count: 199

Filed under:
|

What is the preferred way to display an anchor that doesn't need an href attribute (because it's only used in javascript)?

For example, <a href="#">example 1</a> vs. <a href="javascript:;">example 2</a>.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html