HTML <embed> width attribute
Definition and usage
width
The attribute specifies the width of the embedded content in pixels.
Tip:Please use height attribute Specify 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 | The 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 |