Open In App
Related Articles

How to use URL of the image as a submit button in HTML ?

Improve Article
Save Article
Like Article

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.


<input type="image">

Attribute Value:

  • image: It is used to define an image as the submit button.



<!DOCTYPE html>
        How to specify the URL of
        the image to use as a
        submit button in HTML ?
<body style="text-align:center;">
    <h1 style="color:green;">
        How to specify the URL of
        the image to<br> use as a
        submit button in HTML ?
    <form action="#" method="get">
        Username: <input type="text" name="uname">
        Password: <input type="password" name="pwd">
        <input type="image" src="logo.PNG" 
            alt="submit" width="75" height="75">


Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 25 Dec, 2020
Like Article
Save Article
Similar Reads
Complete Tutorials