Question

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&rsquo;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&rsquo;s <strong>New</strong></a> 

Thanks everyone!

Was it helpful?

Solution

Take the href attribute out. It is what makes an anchor element into a link.

OTHER TIPS

<a href="javascript:void(0);" class="small-red-button">What&rsquo;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/#)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top