How to make a button that trigger something in html and have cooler design | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make a button that trigger something in html and have cooler design

What I mean Is that how to make a button trigger something, what I mean is that like in html there are code named button, the button does nothing, how to make it triggers something and different shaped, ex:"if I press this button a text appear *press* (text appear)"how to make that happen? I want to make a working button in html to make it cool, so please do that

4th Jun 2023, 10:58 AM
dont subscribe
dont subscribe - avatar
2 Answers
+ 3
Html can't do that by itself (nor css), you'll need some JavaScript (or PHP)
4th Jun 2023, 11:03 AM
Orin Cook
Orin Cook - avatar
+ 8
Keep continuing with your courses and you'll learn how to do it. Specifically, in the JavaScript course they teach how to use buttons to trigger changes in the HTML.
4th Jun 2023, 11:40 AM
Ausgrindtube
Ausgrindtube - avatar