Define an image as the submit button, with height and width attributes:
The height
attribute specifies the height of the <input>
element.
Note: The height
attribute is used only with <input type="image">
.
Tip: Always specify both the height
and width
attributes for images. If height and width are set, the space required for the image is reserved when the page is loaded. However, without these attributes, the browser does not know the size of the image, and cannot reserve the appropriate space to it. The effect will be that the page layout will change during loading (while the images load).
The numbers in the table specify the first browser version that fully supports the attribute.
<input height="pixels">
Value | Description |
---|---|
pixels | The height in pixels (e.g. height="100") |
Example:
HTML
<input type="image" src="https://horje.com/uploads/demo/2024-03-13-15-04-45-img_submit.gif" alt="Submit" width="48" height="48">
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |