Home
HTML
HTML Input attributes
Tryit: The height and width attributes
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>The input height and width attributes</h1> <p>The height and width attributes specify the height and width of an input type="image" element.</p> <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>