运行 ❯
获取您
自身
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往空间
<!DOCTYPE html> <html> <body> <h1>The input alt attribute</h1> <p>Click on the image, and the input will be sent to a page on the server called "/action_page.php".</p> <form action="/action_page.php"> <label for="fname">First name:</label> <input type="text" id="fname" name="fname"> <input type="image" src="submit.gif" alt="Submit" width="48" height="48"> </form> <p><b>Note:</b> The image input type sends the X and Y coordinates of the click that activated the image button as default.</p> </body> </html>