HTML 5: The Markup Language

iframenested browsing context (inline frame) # T

The iframe element introduces a new nested browsing context.

Content model #

Attribute model #

Element-specific attributes #

src = uri
The address of a page that the nested browsing context is to contain.
name = browsing-context-name
A valid browsing context name.
width = integer.positive
The width of the iframe, in CSS pixels.
height = integer.positive
The height of the iframe, in CSS pixels.
sandbox = sandbox-allow-list
Instructs the UA to enable a set of extra restrictions on any content hosted by the iframe.
seamless = "seamless" | ""
Instructs the UA that the iframe element's browsing context is to be rendered in a manner that makes it appear to be part of the containing document (seamlessly included in the parent document).

Tag omission #

An iframe element must have both a start tag and an end tag.

Permitted contexts #

Typical default display properties #

iframe {
border: 2px inset; }