Latest web development tutorials

HTML object border attributes

HTML object tag Reference Manual HTML <object> tag

Examples

With 5 pixels thick border <object>:

<object width="200" height="200" data="helloworld.swf" border="5"></object>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support border properties.


Definition and Usage

HTML5 does not support the <object> border property. Use CSS instead.

In HTML 4.01, <object> the border attribute obsolete .

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


Compatibility Notes

In HTML 4.01, <object> the border attribute obsolete. Use CSS instead.

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

CSS Example: with a border <object>

In our CSS tutorial you can find more information about the border attribute details.


grammar

<object border="pixels">

Property Value

描述
pixels 边框的宽度,以像素计。


HTML object tag Reference Manual HTML <object> tag