Take the href
attribute out. It is what makes an anchor element into a link.
Non-clickable placeholder needed
-
10-10-2022 - |
Domanda
I am building a site for a client that will eventually need button links and need to be clickable. For now, though, I would just like a placeholder anchor tag for future use, but I DON'T want it to be clickable. Is there a way to do this? Below, the 'small red button' is a clickable link, but doesn't go anywhere. I just don't want to confuse the client when they see the mockup and the link doesn't work.
<a href="#" class="small-red-button">What’s <strong>New</strong></a>
Thanks! And sorry if this is a newbie question.
EDIT: It worked like this, as suggested:
<a class="small-red-button">What’s <strong>New</strong></a>
Thanks everyone!
Soluzione
Altri suggerimenti
<a href="javascript:void(0);" class="small-red-button">What’s <strong>New</strong></a>
it's still a clickable anchor but it as no efect (ie. does't change your adress to www.site.com/#)