HTML <embed> widthAttributes
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
![]()
![]()
![]()
![]()
![]()
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> Tag Other Extensions