Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 3
How to use a hyperlink with button tag.
4 Respostas
+ 1
Either this:
<a href = āwebsite-name.comā><button>Click to go to website-name.com</button></a>
Or this:
<button onclick = āwindow.open(āwebsite-name.comā);ā>Click to go to website-name.com</button>
In both examples, replace website-name.com with the name of the website.
Hope this helps!
+ 5
<a href="#"><button></button></a>
if you want to make any element behave like an hyperlink...just nest in <a></a> tags
+ 1
<a href= "#"><button>#</button></a>
Nest the button tag in the <a> hyperlink tag