An HTML form with an image as a submit button. The submit button is aligned to the right:
Note: Only the "left" and "right" values of the align attribute work properly in all major browsers.
The <input> align attribute is not supported in HTML5. Use CSS instead.
The align attribute of <input> is deprecated in HTML 4.01.
The align attribute is only used with <input type="image"> and it specifies the alignment of the image input according to surrounding elements.
The align attribute of <input> is deprecated in HTML 4.01. Use CSS instead.
CSS syntax: <input type="image" style="float:right">
In our CSS tutorial you can find more details about the float property.
|left||Left-aligns the image (this is default)|
|right||Right-aligns the image|
|top||Top-aligns the image|
|middle||Middle-aligns the image|
|bottom||Bottom-aligns the image|
Your message has been sent to W3Schools.