HTML <input> align Attribute Last Updated : 12 Jul, 2025 Comments Improve Suggest changes 4 Likes Like Report The HTML <input> align attribute is used with <input type=” image”> to set the horizontal alignment of the image. It is not supported by HTML 5. Note: Since <input type=” image”> is not supported by HTML5 you can use CSS there instead of this attribute. The syntax for CSS <input type=”image” style=”float: right”>. Syntax:<input align="left|right|middle|top|bottom">Attribute Values:Attribute Values Description left It sets the alignment of the image to the left. it is a default value. right It sets the alignment of the image to the right. middle It sets the alignment of the image to the middle. top It sets the alignment of image to the top. bottom It sets the alignment of image to the bottom. Example1: html <!DOCTYPE html> <html> <head> <title> HTML input align Attribute </title> </head> <body> <h1 style="color:green;"> GeeksforGeeks </h1> <h3> HTML input align Attribute </h3> <input type="image" src= "https://media.geeksforgeeks.org/wp-content/uploads/20190506164011/logo3.png" alt="GeeksforGeeks logo" align="right"> </body> </html> Output: Example 2: html <!DOCTYPE html> <html> <head> <title> HTML input align Attribute </title> </head> <body> <center> <h1 style="color:green;"> GeeksforGeeks </h1> <h3> HTML input align Attribute </h3> </center> <div> <input type="image" src= "https://media.geeksforgeeks.org/wp-content/uploads/20190506164011/logo3.png" alt="GeeksforGeeks" align="right"> </div> </body> </html> Output: Supported Browsers:Google Chrome 1 Microsoft Edge 12Firefox 1 Opera 12.1Safari 1 Create Quiz HTML <input> align Attribute Comment J jit_t Follow 4 Improve J jit_t Follow 4 Improve Article Tags : Web Technologies HTML HTML-Attributes Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables10 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms5 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List15+ min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like