How to make that when click on button take you to another page or send in html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make that when click on button take you to another page or send in html?

11th Feb 2023, 2:56 PM
Asser Sherif
Asser Sherif - avatar
4 Answers
+ 1
html: <a href="anotherPage.html"> Text</a> css: a { width: 300px; height: 200px; background-color: gray; border: 1px solid black; } Something like this. Do some research and you will find a wider variety of styling
11th Feb 2023, 3:18 PM
Lamron
Lamron - avatar
+ 1
Make a link and style it as a button
11th Feb 2023, 3:09 PM
Lamron
Lamron - avatar
0
How
11th Feb 2023, 3:14 PM
Asser Sherif
Asser Sherif - avatar
0
Use the href attribute in <a> tag and use css as: a { width:90%; height:50lx; background:royalblue; text-decoration:none; color:goldenrod; text-align:center; font-weight:bolder; } // you can copy the code and paste it on css slot
11th Feb 2023, 4:46 PM
^^^WILL_gamerz^^^
^^^WILL_gamerz^^^ - avatar