Horje

Example of adding height and width Attributes in HTML Input

Define an image as the submit button, with height and width attributes:
index.html
Example: HTML
 <form>
  <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> 

Output should be:

Example of adding height and width Attributes in HTML Input




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Input Attributes
Uploaded by:
Admin