How to Create Button in HTML | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to Create Button in HTML

<!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <button onclick="a href = 'https://google.com';">Click Here</button> </body> </html>

12th Aug 2019, 7:20 AM
Gaurav Kumar
Gaurav Kumar - avatar
1 Answer
+ 12
Gaurav Kumar you can do like this <a href="https://www.google.com"><button>click me</button></a>
12th Aug 2019, 7:26 AM
GAWEN STEASY
GAWEN STEASY - avatar