How do I add the type attribute to <button> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I add the type attribute to <button>

16th Jul 2023, 9:41 PM
Stormfire0219
11 Answers
+ 3
<input type='button' value='Click me!'>
16th Jul 2023, 10:41 PM
Jan Markus
+ 1
Jan Markus thank you so much!
17th Jul 2023, 12:45 AM
Stormfire0219
+ 1
Good
17th Jul 2023, 4:23 PM
Qaliqaliyyu Qali
Qaliqaliyyu Qali - avatar
18th Jul 2023, 3:08 PM
Jitendra Lariya
Jitendra Lariya - avatar
+ 1
https://code.sololearn.com/WZC5EUmVIhFp/?ref=app
20th Jul 2023, 4:25 PM
Jitendra Lariya
Jitendra Lariya - avatar
20th Jul 2023, 4:26 PM
Jitendra Lariya
Jitendra Lariya - avatar
0
I mean how to make it work inside the form tag
16th Jul 2023, 9:49 PM
Stormfire0219
0
<input type=button>
16th Jul 2023, 9:49 PM
Stormfire0219
0
How do I add the text to that tag?
16th Jul 2023, 9:50 PM
Stormfire0219
0
value="click me" this is a good reference site for webdev related stuff https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/button
17th Jul 2023, 12:08 PM
Bob_Li
Bob_Li - avatar
0
anything you write in value will be the text on the button
17th Jul 2023, 2:23 PM
PARTH
PARTH - avatar