Easy Tutorial
❮ Prop Audio Volume Prop Loc Hostname ❯

IFrame width Attribute


Definition and Usage

The width attribute sets or returns the value of the width attribute of an iframe element.

The width attribute specifies the width of the iframe.

Syntax

The width attribute can have the following values:

Value Description
pixels In pixels (e.g., "100px" or "100")
% As a percentage (e.g., "20%")

Browser Support

All major browsers support the width attribute.


Example

Change the height and width of an iframe:

❮ Prop Audio Volume Prop Loc Hostname ❯