New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

# iframe

Defines a container for a nested browsing context: you can include a web page within another web page.

Example: Copy

<iframe src="https://cssreference.io">
  Fallback text for non-supported browsers
</iframe>

src

Defines the URL of the nested web page.

"https://cssreference.io"

You can type any URL. Be aware that some websites will not allow to be iframed.

allowfullscreen

Allows the browser to show the iframe in fullscreen with JavaScript.

No value required.

height

Defines the height of the iframe.

"50"

The height in pixels.

width

Defines the width of the iframe.

"150"

The width in pixels.