VOOZH about

URL: https://www.geeksforgeeks.org/html/html-object-vspace-attribute/

⇱ HTML <object> vspace Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <object> vspace Attribute

Last Updated : 14 Dec, 2021

The HTML <object> vspace Attribute is used to specify the number of whitespace on the bottom and top side of an object.

Syntax: 
 
<object vspace="pixels"> 

Attribute:

  • pixels: It specifies the number of whitespaces on the top and bottom of an object in terms of pixels.


Note: The <object> vspace Attribute is not supported in HTML 5. Use CSS margin property instead of this attribute.

Below examples illustrate the <object> vspace attribute in HTML:
Example 1: In this example the object with 50px margin on top and bottom.

Output: 
 

👁 vspace attribute


Example 2: 
 

Output:

👁 vspace attribute


Supported Browsers: The browsers supported by HTML <Object> vspace attribute are listed below: 
 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari
Comment
Article Tags: