Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Specifies the width of the input in pixels. This property is only valid when type="image".

Tip
Tip: Always specify both the height and width properties for images. If height and width are set, the space required for the image is reserved when the page is loaded. However, without these properties, 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).

...

Valid values

Any integer value.