What is the difference between <button> tag and <input type=button> ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between <button> tag and <input type=button> ?

No Description Available 😓😓😓

19th Aug 2020, 3:34 AM
Abir Sheikh
Abir Sheikh - avatar
7 Answers
+ 1
If you have to use img on button use button else use input type= button in form.
19th Aug 2020, 4:04 AM
Divya Mohan
Divya Mohan - avatar
+ 6
the <button> tag needs a closing tag, but the <input> tag doesn't need a closing tag
20th Aug 2020, 10:06 AM
Ari Eka Putragani (A-3)
Ari Eka Putragani (A-3) - avatar
+ 1
Himanshu Shah They Both Are Clickable 😓😓😓
19th Aug 2020, 3:41 AM
Abir Sheikh
Abir Sheikh - avatar
19th Aug 2020, 3:48 AM
Himanshu Shah
Himanshu Shah - avatar
0
Abir Sheikh Input tag is not clickable but button tag is clickable Just make a program and use both tags and see the difference.
19th Aug 2020, 3:40 AM
Himanshu Shah
Himanshu Shah - avatar
0
Abir Sheikh do you have made a program then send here
19th Aug 2020, 3:45 AM
Himanshu Shah
Himanshu Shah - avatar
0
Himanshu Shah so, is it okay to use button tag instead of input tag in a HTML form?
19th Aug 2020, 3:53 AM
Abir Sheikh
Abir Sheikh - avatar