Input type submit or Button type submit

Input type submit or Button type submit
0

#1

Hi there I am new around here and wanted to ask a question. Could anyone please tell me the difference between the following? :slight_smile:

13%20PM


#2

Here an explanation from w3.org :
“Buttons created with the BUTTON element function just like buttons created with the INPUT element, but they offer richer rendering possibilities: the BUTTON element may have content. For example, a BUTTON element that contains an image functions like and may resemble an INPUT element whose type is set to “image”, but the BUTTON element type allows content.”


#3

Thank you very much :slight_smile: