HTML5 Forms: Src, Alt, Height And Width Attributes - Wufoo

An arrow pointing left An arrow pointing right An arrow pointing left A magnifying glass The Twitter logo The Facebook logo The LinkedIn logo The Google Plus logo The RSS feed symbol The Wufoo by SurveyMonkey Logo The Wufoo by SurveyMonkey Logo A credit card A tray with an upwards pointing arrow A diamond with two arrows leading to different boxes Two bars in a chart Two pages A painter's palette A question mark in a circle A website layout A signpost A speech bubble Two interlinked arrows A bar chart with a magnifying glass near it A climbing graph in a magnifying glass A lock A certificate A shopping bag A graduation cap A pair of hands holding up a heart An open envelope with a note inside A ribbon An apple A hand dragging an item between two others A paper airplane An arrow pointing downwards into a tray A bar chart with a magnifying glass near it Two bars in a graph Two pages Two arrows circling into each other A credit card A trophy with a star on it Two people Two hands holding a heart Two hands holding money Two hands holding a party popper checkmark custom branding ssl notification payment data fortress captcha data report workflow integration custom report theme gallery pricing notifications pricing security pricing form template gallery pricing analytics reporting pricing theme designer pricing rest api pricing mobile pricing customer support pricing social sharing pricing field validation pricing custom responses

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 height attribute defines the height of theimage in CSS pixels. The width attribute 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 src attribute defines the source or location of the image.
  • The required alt attribute provides alternative text in case your image doesn’t show up and for users who can’t otherwise “see” your image.
Cloud Cloud Cloud Cloud

Let Wufoo do the hard work.

Sign up for a free account and start making forms the easy way. Sign Up Free

Từ khóa » Html5 Alt