views:

271

answers:

3

Why iframe declared as non-standard thing? It has usefulness.

Is it allow to use in xhtml 1.1 ? or should we use frameset doctype if we use iframe?

A: 

Because it's ugly and nobody wants multiple sets of scrollbars in their pages.

Azeem.Butt
A: 

You can use the object. (http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.5)

<object id="page" type="text/html" data="page.htm" width="500" height="600"> 
  <p>Oops! That didn't work...</p> 
</object>
meep
+1  A: 

An iframe is a method of displaying another html document inside a frame on a webpage. The w3 is moving towards making all external files to be displayed in an html document done with the <object> tag. This includes applets, flash movies, even images. Iframe's deprecation isn't because the idea of having an html file displayed in a "frame" is bad, it's deprecated because there's now a "better" method of doing the same thing.

Iframe is completely dropped in XHTML 1.1, so it will probably not display. Iframes are valid in the non frameset doctypes that support them, but changing the doctype can sometimes change how it's displayed due to some bugs <cough> internet explorer </cough>.

Since support for iframes and the <object> tag is sketchy in many browsers, its best to test code using either of them carefully to make sure if behaves in the major browsers.

see replacing iframe with object in xhtml 1.1

CrazyJugglerDrummer