[X]

The IFRAME's Presentational Attributes

frames 1997 partly

Five attributes for controlling an inline frame's chrome, all now obsolete.

In 2026: Browsers still honour most of them and the HTML standard lists them as obsolete. ALLOWTRANSPARENCY was Internet Explorer only and was the only way to see through a frame to the page behind it.

Where it came from: Microsoft Internet Explorer 3 HTML extensions, 1996. Standardised in HTML 4.0. MDN

<iframe src="inner.html"
        width="400" height="200"
        frameborder="0"
        scrolling="no"
        marginwidth="0" marginheight="0"
        allowtransparency="true"
        name="inner">
  Your browser does not support inline frames.
</iframe>

<!-- The 2026 version. srcdoc means there is no second file to fetch, which
     is also why this one has something in it and the one above does not. -->
<iframe width="400" height="120" style="border:0" loading="lazy"
        sandbox="allow-scripts" title="Inner page"
        srcdoc="&lt;body style='font:13px Verdana;margin:8px'&gt;
                Inline frame content, no border, no scrollbars.&lt;/body&gt;"></iframe>
sandboxed demo · breaks nothing but itselfrestart

More in frames

all 3 in frames › · the whole library ›