The HTML type attribute is used to specify the type of element to display. The default type of type attribute is text. In this article, we set the image as an input type value. It creates the image as the submit button. image: It is used to define an image as the submit button. Kapwing is a platform that allows you to create content and create it. What does "and all" mean, and is it an idiom in this context? Thanks for contributing an answer to Stack Overflow! We need to add the URL to the src attribute. how to add image in input type=text. Here is an example: This will display the image as a button that the user can click on to submit the form. In order to put an image in a text box in HTML, you will need to use the img tag. First option is to set background-image of input box, but the problem is you have to handle it for different input sizes . Wall shelves, hooks, other wall-mounted things, without drilling? The tag defines an input element that allows the user to enter data. Flip that