Program:
Output:
<!DOCTYPE html> <html> <head> <style> img{ width:50px; height:50px; } </style> </head> <body> <form name="f"> First Name: <input type="text" > <br/><br/> Last Name: <input type="text" > <br/><br/> <img src="submit.jpg" onclick="javascript:document.forms.f.submit()" /> <img src="reset.jpg" onclick="javascript:document.forms.f.reset()" /> </form> </body> </html>
Output: