How to create a hyperlink in body of the page using css | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to create a hyperlink in body of the page using css

6th Nov 2018, 10:54 AM
Avadesh Pandey
Avadesh Pandey - avatar
4 Answers
+ 2
What do you mean ? Like it'll redirect to link wheveever you click at the webpage ?
6th Nov 2018, 10:56 AM
Taste
Taste - avatar
+ 1
Idk if its possible using css But using you can create a link using <a> and work on its shape using css <a href="#" class="coinbtn">coin</a> Or using js, by adding onclick to your element, like <div onclick="coin()"> And the js function coin(){ window.location="newlink" }
6th Nov 2018, 11:09 AM
Taste
Taste - avatar
0
it should be like"To collect more coins CLICK HERE" and CLICK HERE should redirect to other page
6th Nov 2018, 11:02 AM
Avadesh Pandey
Avadesh Pandey - avatar
0
Ok thanks.. I will try
6th Nov 2018, 11:14 AM
Avadesh Pandey
Avadesh Pandey - avatar