Query related to Form - Submit

What is the distinction between

<button type="submit" >Submit</button>


<input type="submit" value="Submit" >

Both of the above-mentioned codes are used to submit forms; which one should be used when, and can someone explain it with an example?

You may be interested in this:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.