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-height-attribute/ below:

HTML | <object> height Attribute

HTML | <object> height Attribute

Last Updated : 19 Jul, 2022

The HTML <object> height attribute is used to specify the height of the object element in terms of pixel. 

Syntax: 

<object height="pixels">

Attribute Values:

Below example illustrates the <object> height attribute in HTML: 

Example: 

html
<!DOCTYPE html> 
<html> 

<head>
    <title>
        HTML object height Attribute
    </title>
</head>

<body style="text-align:center;"> 
    
    <h2>HTML object height Attribute</h2> 
    
    <object id="myobject" width="400"
                height="200" data= 
"https://media.geeksforgeeks.org/wp-content/uploads/geek-8.png"> 
    </object> 

</body> 

</html>

Output:

  

Supported Browsers: The browser supported by HTML object height 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