HTML <iframe> width Attribute

❮ HTML <iframe> tag

Example

<iframe src="demo.html" height="500" width="400">
  Your browser does not support iframe element.
</iframe>

Meaning

The width attribute specifies the width of the iframe.

By default width of the <iframe> is 300 pixels.


Standard Syntax

<iframe width="pixels">



Browser Support




Status







Attribute Values

Value Description
pixels Specifies the width of inline frame
❮ HTML <iframe> tag