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

HTML Reference Manual

HTML Tag大全

HTML: <embed> width Attribute

This article introduces the usage method of HTML embed width attribute, online instance demonstration of how to use HTML embed width attribute, browser compatibility, syntax definition and detailed information of its attribute values, etc.

 HTML <embed> tag

Online Example

with a height and width of 200 pixel flash animation:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML <embed> width Attribute Usage-Basic Tutorial(oldtoolbag.com)</title>
</head>
<body>
<embed src="helloworld.swf" width="200" height="200" style="border:1px solid">
</body>
</html>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the width attribute.

Definition and Usage

The width attribute specifies the width of the embedded content (in pixels).
Tip: You can specify the height of the embedded content using the height attribute.

HTML 4.01 with HTML5differences

The <embed> tag is an HTML5 of the new tag in.

Syntax

<embed width="pixels">

Attribute Value

ValueDescription
pixelsSpecifies the width of the embedded content in pixels (for example, width="100").
 HTML <embed> tag