HTML: using “Object” tag for “Iframe”

By Xah Lee. Date: . Last updated: .

HTML iframe tag is technically not supported in HTML 4.01 strict or XHTML 1.1 strict.

It works in all browsers anyway.

But if you want to be correct, you can use object tag for similar effect, like this:

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

Back to HTML: Iframe

Web Dev Tutorials

  1. HTML
  2. Visual CSS
  3. JS in Depth
  4. JS Reference
  5. DOM
  6. SVG
  7. Web Dev Blog