Easy Tutorial
❮ Ev Onmouseout Att Area Target ❯

HTML <object> vspace Attribute

HTML <object> Tag

Example

An object with 100 pixels of margin on the top and bottom:


Browser Support

All major browsers support the vspace attribute.


Definition and Usage

In HTML 4.01, the vspace attribute of <object> is deprecated.

The vspace attribute specifies the white space on the top and bottom of an object.


Compatibility Notes

In HTML 4.01, the vspace attribute of <object> is deprecated. Use CSS instead.

CSS syntax: <object style="margin: 100px 0px">

CSS Example: <object> with Margin

In our CSS tutorial, you can find more details about the margin property.


Syntax

Attribute Values

Value Description
pixels The white space on the top and bottom of the object, in pixels.

❮ Ev Onmouseout Att Area Target ❯