The HTML <object> align Attribute is used to specify an alignment for an object Element. It is an inline element means that can not insert a new line on a page. The text and another element can also wrap around it.
Syntax:
<object align="left | right | middle | top | bottom">
Attribute Values:
- left: It sets the object to the left-align.
- right: It sets the object to the right-aligm.
- middle: It sets the object to the middle.
- top: It sets the object to the top-align.
- Bottom: It sets the object to the bottom align.
Example:
<!DOCTYPE html> <html> <head> <title> HTML object align Attribute </title> </head> <body style="text-align:center;"> <h2>HTML object align Attribute</h2> <object id="myobject" width="200" height="100" align="left" data= </object> <object id="myobject" width="200" height="100" align="right" data= </object> <object id="myobject" width="200" height="100" align="middle" data= </object> <object id="myobject" width="200" height="100" align="top" data= </object> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers: The browser supported by HTML object align attribute are listed below:
- Google Chrome 10.0
- Internet Explorer 10.0
- Firefox 4.0
- Opera 10.6
Recommended Posts:
- Difference between align-content and align-items
- HTML | <col> align Attribute
- HTML | <img> align Attribute
- HTML | <hr> align Attribute
- HTML | <p> align Attribute
- HTML <table> align Attribute
- HTML | <tbody> align Attribute
- HTML | <td> align Attribute
- HTML | <tr> align Attribute
- HTML | <th> align Attribute
- HTML | <tfoot> align Attribute
- HTML | <input> align Attribute
- HTML | <legend> align Attribute
- HTML | <caption> align Attribute
- HTML | <div> align Attribute
- HTML | <colgroup> align Attribute
- HTML | <thead> align Attribute
- HTML | <h1> to <h6> align Attribute
- HTML | applet align Attribute
- HTML align Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


