When we have a input type="image" inside a form then that image link can be used to submit the form. No need to write seperate onclick function to submit the form.
This can happen only for input type="image". It does not apply to img src="".....
Need to take extra care when using input type="image". Or else form will be submitted.