How i add some link to the buttons? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How i add some link to the buttons?

15th Feb 2020, 12:09 PM
Sam Progects
4 Answers
+ 4
You put the <a> tag inside of the button tag. You could also if you want different text size, put a tag such as <h3> inside of the <a> tag also. The example code: <button><a href="#LinkGoesHere"></a></button>
15th Feb 2020, 12:27 PM
Aman[A.I]
Aman[A.I] - avatar
15th Feb 2020, 12:25 PM
Gordon
Gordon - avatar
+ 2
Thanks
15th Feb 2020, 12:49 PM
Sam Progects
+ 1
wrap the button tags within the <a> tags <a href="#your-link"> <button>Click</button> </a>
16th Feb 2020, 10:35 AM
Lucky
Lucky - avatar