HTML: using “Object” tag for “Iframe”

By Xah Lee. Date: ,

HTML has a “iframe” tag that lets you embed a page inside another page. However, technically it is not supported in HTML 4.01 strict or XHTML 1.1 strict. You can use “object” tag for similar effect, like this:

<object type="text/html" data="../ex/iframe_me.html" width="200" height="200"></object>

For example of using “iframe” tag, see: HTML: Iframe.

Like what you read? Please tell friends, share link, or Buy JavaScript in Depth. Thanks.