Click here to Skip to main content
15,860,972 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how do i add a link to the buttons below they are five i want each one of them linked to a separate url how do i edit this


<button class="btn btn-primary" type="button">Home</button> <button class="btn btn-success" type="button">Sign Up</button> <button class="btn btn-info" type="button">Login</button> <button class="btn btn-warning" type="button">User HelpDesk</button> <button class="btn btn-danger" type="button">Contact Us</button>


What I have tried:

i have tried editing it with html editor but i am a basic user i am not a pro
so i need help
Posted
Updated 21-May-16 5:07am

1 solution

You are using bootstrap, try this:
<a href="http://www.codeproject.com/" class="btn btn-primary" role="button">Code Project</a>

You will get a link button.
Learn more: Bootstrap Buttons[^]
 
Share this answer
 
Comments
Karthik_Mahalingam 21-May-16 11:52am    
5, bootstrap - good catch.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900