If you don't want the link to navigate anywhere, the convention is href="#", with an e.preventDefault() at the end of your click handler (which needs an e parameter). Tag name Add Tag. It is an attribute of an anchor tag ( ), which is used to determine the beginning and end of a hypertext link. Search engines won't execute your JavaScript, so the pseudo-links (which depend on JS) are just black holes of nothingness as far as they are concerned). The 'a' tag creates a hyperlink that is a clickable link that points to another webpage and controls the anchor text of a hyperlink, which is important for link building. Why does the distance from light to subject affect exposure (inverse square law) while from subject to lens does not? Examples of frauds discovered because someone tried to mimic a random sequence, What is this fallacy: Perfection is impossible, therefore imperfection should be overlooked. 'href' stands for hypertext reference and is the code used in HTML and is the most important attribute in the 'a ' tag - also known as the anchor tag. Debian/Ubuntu - Is there a man page listing all the version codenames/numbers? If the a element has no href attribute, then the element represents a placeholder for where a link might otherwise have been placed, if it had been relevant, consisting of just the element's contents. And making a link does absolutely nothing when clicked . Which "href" value should I use for JavaScript links, "#" or "javascript:void(0)"? HTML href is abbreviated as hypertext reference. If the href attribute is not present, the <a> tag will not be a hyperlink. Syntax - Describe how it is used. Are there conservative socialists in the US? (I'm asking this from the SEO perspective). But an anchor without an href isn't a hyperlink, and so isn't going to be interactive. How to change the href attribute for a hyperlink using jQuery, Retrieve the position (X,Y) of an HTML element. In HTML5, using an a element without an href attribute is valid. From an SEO perspective, I'd go with using titles for the anchor tags (avoid the -ve text-indent property. The a href part of the HTML code for link specifies where the hyperlink leads to. A button is something that when clicked causes an action to occur. If you have links that act like buttons, you should probably have used a