Easy Tutorial
❮ Att Img Usemap Att Td Axis ❯

HTML <input> align Attribute

HTML <input> Tag

Example

An HTML form with an image submit button aligned to the right:


Browser Support

Note: Only the "left" and "right" values of the align attribute work correctly in all major browsers.


Definition and Usage

In HTML 4.01, the align attribute of <input> is deprecated.

The align attribute is used only with <input type="image"> and specifies the alignment of the image input relative to other elements.


Compatibility Notes

In HTML 4.01, the align attribute of <input> is deprecated. Use CSS instead.

CSS syntax: <input type="image" style="float:right">

CSS Example: Aligning Input Image

In our CSS tutorial, you can find more details about the float property.


Syntax

Attribute Values

Value Description
left Aligns the image to the left (default).
right Aligns the object to the right.
top Aligns the image to the top.
middle Aligns the image to the center.
bottom Aligns the image to the bottom.
❮ Att Img Usemap Att Td Axis ❯