English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag大全

HTML object border attribute

The border attribute specifies the width of the border around the <object>. HTML5 The <object> border attribute is not supported, please use CSS instead

  HTML <object> tag

Online Example

Border is3pixels<object>:

<!DOCTYPE html>
<html>
<head>
<title>HTML:<object> border 属性 - 基础教程网(oldtoolbag.com)</title>
</head>
<body>
<object width="200" height="200" data="bookmark.swf" border="3></object>
</body>
</html>
Test and see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the border attribute.

Definition and Usage

HTML5 The <object> border attribute is not supported. Please use CSS instead.

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

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

Compatibility Notes

In HTML 4.01 In HTML5, the <object> border attribute is deprecated. Please use CSS instead.

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

CSS Example: <object> with border

In our CSS tutorial, you can find more aboutborder attributedetails.

Syntax

<object border="pixels">

Attribute Value

ValueDescription
pixelsBorder width in pixels.
  HTML <object> tag