Query related to Form - Submit

Hello,
What is the distinction between

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

and

<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: