HTML <input type="image"> Last Updated : 20 May, 2024 Comments Improve Suggest changes 2 Likes Like Report The HTML <input type="image"> element defines an image as a submit button within a form. When the image is clicked, the form is submitted, similar to a regular submit button. It allows for more visually appealing form submissions, as the image can serve as the button instead of a plain text or styled button element. Syntax<input type="image">Attribute Valueimage: It is used to define an image as the submit button.FeaturesThe input element does not accept a value attribute.The image path is defined in the src attribute.The input element is supported by various common attributes.Example: In this example, we will use the HTML <input type="image"> element to create an image-based submit button for a form. HTML <!DOCTYPE html> <html> <head> <title> HTML Input Type Image </title> </head> <body> <h2>HTML <input type="image"></h2> <form id="#"> <label for="name">Enter Name:</label> <input type="text" id="name" placeholder="Enter Name..." /> <br><br> <label for="email">Enter Email:</label> <input type="email" id="email" placeholder="Enter Email..." /> <br><br> <label for="mobile">Enter Contact:</label> <input type="tel" id="mobile" placeholder="Enter Phone Number..." /> <br><br> <input type="image" src= "https://media.geeksforgeeks.org/wp-content/uploads/20240519103834/GFG-Logo.png" height="40px" width="150px" alt="GFG" /> </form> </body> </html> Output Example 2: In this example, we will make a login form & use the image as an input type to submit the form. HTML <!DOCTYPE html> <html> <head> <title> HTML Input Type Image </title> </head> <body> <h2>HTML <input type="image"></h2> <form action="#"> <label for="email">User Id:</label> <input type="email" placeholder="Enter Email..." /> <br><br> <label for="password">Password:</label> <input type="password" placeholder="Enter Password..." /> <br><br> <input type="image" src= "https://media.geeksforgeeks.org/wp-content/uploads/20240519103834/GFG-Logo.png" height="40px" width="130px" alt="submit" /> </form> </body> </html> Output Supported BrowsersChrome 1Edges 12Firefox 1Opera 15Safari 1 Create Quiz Comment M manaschhabra2 Follow 2 Improve M manaschhabra2 Follow 2 Improve Article Tags : Web Technologies HTML HTML-Attributes Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables9 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms4 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List5 min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like