HTML <embed> widthAttributes

HTML embed 标签参考手册HTML <embed> Tag

Examples

A flash animation with a height and width of 200 pixels:

<embed src="helloworld.swf.html" width="200" height="200">

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the width attribute.


Definition and Usage

The width attribute specifies the width of the embedded content, in pixels.


Differences between HTML 4.01 and HTML5

The <embed> tag is new in HTML5.


Syntax

<embed width="pixels">

Attribute Values

Value Description
pixels Specifies the width of the embedded content, in pixels (e.g. width="100").


HTML embed 标签参考手册HTML <embed> Tag Other Extensions