Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since июль 2015 г..
<input type="image"> - это кнопка отправки в виде изображения. Вы можете использовать атрибут src, чтобы выбрать источник изображения и атрибут alt, чтобы добавить альтернативный текст. Атрибутами width и height можно указать размер изображения в пикселях.
| Необязательный закрывающийся тег | Обязательно должен быть открывающийся тег, и обязательно отсутствует закрывающий. |
| Разрешённые родительские элементы | Любой элемент, которому доступен фразообразующий контент (phrasing content). |
| DOM-интерфейс | HTMLInputElement |
Этому элементу доступны глобальные атрибуты (global attributes).
type
formactionThe URI of a program that processes the information submitted by the input element, here image if specified, it overrides the action attribute of the element's form owner.
formenctypeIf the input element is an image, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:
In image input element, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:
This Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the novalidate attribute of the element's form owner.
formtargetThis attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a browsing context (for example, tab, window, or inline frame). If this attribute is specified, it overrides the target attribute of the element's form owner. The following keywords have special meanings:
This attribute defines the height of the image displayed for the button.
requiredThis attribute specifies that the user must fill in a value before submitting a form but it cannot be used when the type attribute is image type (submit, reset, or button). The :optional and :required CSS pseudo-classes will be applied to the field as appropriate.
srcThis attribute specifies a URI for the location of an image to display on the graphical submit button; otherwise it is ignored.
usemapThe name of a <map> element as an image map.
widthThis attribute defines the width of the image displayed for the button.
| HTML # image-button-state-(type=image) |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 15 апр. 2025 г. by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.