主頁
HTML
HTML 輸入型別
Tryit: 輸入影像
執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <h2>Display an Image as the Submit button</h2> <form action="/action_page.php"> <label for="fname">First name: </label> <input type="text" id="fname" name="fname"><br><br> <label for="lname">Last name: </label> <input type="text" id="lname" name="lname"><br><br> <input type="image" src="img_submit.gif" alt="Submit" width="48" height="48"> </form> <p><b>Note:</b> The input type="image" sends the X and Y coordinates of the click that activated the image button.</p> </body> </html>