HTML <embed> width attribute
Definition and Usage
width
The attribute specifies the width of the embedded content in pixels.
Tip:Use height attribute Specifies the height of the embedded content.
Example
An image with a height and width of 200 pixels:
<embed src="tulip.jpg" width="150" height="150">
Syntax
<embed width="pixels">
Attribute Value
Value | Description |
---|---|
pixels | Width of embedded content, in pixels (for example, width="100"). |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |