Easy Tutorial
❮ Canvas Filltext Att Input Formmethod ❯

HTML <object> border Attribute

HTML <object> Tag

Example

An <object> with a 5-pixel thick border:


Browser Support

All major browsers support the border attribute.


Definition and Usage

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

The border attribute specifies the width of the border around the <object>.


Compatibility Notes

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

CSS syntax: <object style="border:5px solid black">

CSS Example: <object> with a border

For more details about the border property, you can find more in our CSS Tutorial.


Syntax

Attribute Values

Value Description
pixels The width of the border, in pixels.

❮ Canvas Filltext Att Input Formmethod ❯