Horje

How to add HTML <embed> width Attribute

A picture with a height and width of 200 pixels.

Definition and Usage

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

Tip: Use the height attribute to specify the height of the embedded content.


Browser Support

Syntax

<embed width="pixels">

Attribute Values

Value Description
pixels The width of the embedded content, in pixels (i.e. width="100")
index.html
Example: HTML
<embed type="image/jpg" src="https://horje.com/avatar.png" width="200" height="200">

Output should be:

How to add HTML <embed> width Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin