HTML: using “Object” tag for “Iframe”

, ,
Want to master JavaScript in a week? Buy Xah JavaScript Tutorial.

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 Tutorial.

blog comments powered by Disqus