Let Wufoo do the hard work. Sign up for a free account and start making forms the easy way.
Live Demo
Firefox | Safari | Safari | Chrome | Opera | IE | Android |
|---|---|---|---|---|---|---|
The Low Down
Similar to the <img> element, the height, width, src, and alt attributes define the height, width, source and alterative text of the image button.
- The height and width attributes are only relevant on
<img>and image buttons,<input type="image">, defining the size of the image:- The
heightattribute defines the height of theimage in CSS pixels. Thewidthattribute defines the width. - If omitted, and not defined with CSS, the height and width of the image will be the actual size of the image.
- The
- The
srcattribute defines the source or location of the image. - The required
altattribute provides alternative text in case your image doesn’t show up and for users who can’t otherwise “see” your image.