A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-object-align-attribute/ below:

HTML | <object> align Attribute

HTML | <object> align Attribute

Last Updated : 08 May, 2024

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 other elements can also wrap around it. 
Note: This attribute is not supported by HTML5. 

Syntax: 
 

<object align="left | right | middle | top | bottom">


Attribute Values: 
 


Example: 
 

html
<!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=
"https://media.geeksforgeeks.org/wp-content/uploads/geek-8.png">
    </object>

    <object id="myobject"
            width="200"
            height="100" 
            align="right" 
            data=
"https://media.geeksforgeeks.org/wp-content/uploads/geek-8.png">
    </object>
    <object id="myobject"
            width="200" 
            height="100"
            align="middle"
            data=            
"https://media.geeksforgeeks.org/wp-content/uploads/geek-8.png">
    </object>
    <object id="myobject" 
            width="200"
            height="100" 
            align="top" 
            data=
"https://media.geeksforgeeks.org/wp-content/uploads/geek-8.png">
    </object>
</body>

</html>

Output: 
 


Supported Browsers: The browser supported by HTML object align attribute are listed below: 
 



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4