Easy Tutorial
❮ Att Select Autofocus Html Lists ❯

HTML <iframe> width Attribute

HTML <iframe> Tag

Example

Specify an <iframe> with a height and width of 200 pixels:


Browser Support

All major browsers support the width attribute.


Definition and Usage

The width attribute specifies the width of the <iframe>, in pixels.


Differences Between HTML 4.01 and HTML5

In HTML 4.01, the width should be defined in pixels or as a percentage of the containing element. In HTML5, the width value must be in pixels.


Syntax

Attribute Values

Value Description
pixels The width in pixels (e.g., "100px" or just "100").

❮ Att Select Autofocus Html Lists ❯