HTML <input> with align Attribute
HTML <input> with align Attribute
The align
attribute specifies the alignment of the <input> tag.
Note: The align
attribute is only used for <input> with type="image".
Warning: The align
attribute is deprecated and is no longer recommended.
Tips: To align an <input> element whose type="image", try any of the following methods:
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<form action="/user-name.php">
Name: <input type="text" name="name">
<input type="image" src="submit.png" alt="Submit" align="right">
</form>
</body>
</html>
Attribute Values
Name | Explanation |
---|---|
left | Specifies the image should align left. |
right | Specifies the image should align right. |
top | Specifies the image should align top. |
middle | Specifies the image should align middle. |
bottom | Specifies the image should align bottom. |
Reminder
Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in HTML.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.