How to create an image acting as a submit button using HTML5 ? Last Updated : 09 Oct, 2021 Comments Improve Suggest changes Like Article Like Report In this article, we will learn how to create an image that acts as a submit button i.e. whenever we click on an image in the form, it will be automatically submitted to the server. The default type of <input> type attribute is text. Here, we use a simple approach to complete the task. Syntax <input type = "image">Attribute Value: image: It is used to define an image as the submit button.Features: The 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.Approach: Firstly, create an HTML document that contains an <input> tag.use the type attribute with the <input> tag.set the type attribute to value "image".You can also use the src attribute which contains the URL of the image.Example: This example illustrates the use of the image button in the input type to submit the login details in HTML Form. HTML <!DOCTYPE html> <html> <body style="text-align: center"> <h1 style="color: green"> GeeksForGeeks </h1> <h2> How to create an image that act as a submit Button using HTML5? </h2> <form> Email Address: <input type="email" placeholder="Enter your email Address" /> <br><br> Password No.: <input type="password" placeholder="Enter password " /> <br><br> <input type="image" src= "https://media.geeksforgeeks.org/wp-content/uploads/20210915115837/gfg3.png" height="80px" width="110px" alt="submit" /> </form> </body> </html> Output: Example: In this example, we have used the input type as an image for the newsletter subscription button in HTML. HTML <!DOCTYPE html> <html> <body style="text-align: center"> <h1 style="color: green"> GeeksforGeeks </h1> <h4>Subscribe to GeeksforGeeks Newsletter</h4> <p> The best of content served at the convenience of your fingertips. </p> <form> Name: <input type="text" placeholder="Name" name="name" required /> <br><br> Email: <input type="text" placeholder="Email address" name="mail" required /> <br><br> <input type="checkbox" checked="checked" name="subscribe" /> Daily Newsletter <br><br> <input type="image" src= "https://media.geeksforgeeks.org/wp-content/uploads/20210915115837/gfg3.png" height="80px" width="90px" value="Subscribe" /> </form> </body> </html> Output: Comment More infoAdvertise with us Next Article How to create an image acting as a submit button using HTML5 ? M manaschhabra2 Follow Improve Article Tags : HTML HTML-Tags HTML-Questions Similar Reads How to use URL of the image as a submit button in HTML ? The HTML <input> type attribute is used to specify the type of <input> element to display. The default type of <input> type attribute is text. In this article, we set the image as button value. It creates the image as the submit button. Syntax: <input type="image"> Attribute 1 min read How to Create Form Submit Button in HTML ? In HTML, the form submit button plays a crucial role in sending user data to the server for processing. It's typically created using either <input type="submit"> the <button> tag. Around 95% of web forms use one of these two methods, making them essential for enabling user interaction an 3 min read How to Add a Login Form to an Image using HTML and CSS? The login form on an Image is used on many websites. Like hotel websites that contain pictures of the hotels or some organizations that organize special events holding that event picture and login form. In that case, you can design a login or registration form on that picture. This design will make 2 min read How to Use Images as Buttons in HTML? Images can work like buttons to make a website more interactive and visually appealing. Over 70% of modern websites include image-based elements to enhance user experience. This article shows different ways to turn images into clickable buttons using simple HTML.1. Using the img Tag Inside the Butto 2 min read How to use multiple submit buttons in an HTML form ? Using multiple submit buttons in an HTML form allows different actions based on the button clicked. Each submit button can trigger a unique server-side or JavaScript process while sharing the same form fields, enabling various functionalities within a single form structure.Syntax<form action="/https/www.geeksforgeeks.org/DE 2 min read Like