Getting contradictory messages about that, hope they're not. I cannot imagine support for it would stop, since a gazillion sites use them.
Some additional questions about that:
- Why should they phase out this tag?
- Any alternative for it?
Getting contradictory messages about that, hope they're not. I cannot imagine support for it would stop, since a gazillion sites use them.
Some additional questions about that:
At my previous company, we provided a hosted application that customers would integrate into their own websites. At times, they would use an IFrame to do this, fitting our hosted page into their existing designs. Sometimes this was even done seamlessly (ie. the IFrame had no borders or scrollbars, it just looked like part of the page). I considered this to be a good use of the tag.
Compliance and Security issues can also drive you to use Iframes; Shopping carts are popular IFrame-based implementations when you want to visually incorporate a shopping cart as part of some web pages without taking on full responsibility for the payment processing side of things.
We commonly deliver an Iframe to integrate our eCommerce stuff and clients like how turnkey it can be.
Iframes are obsolete for page layout. Never use them instead of good CSS layout, even table-based layout is better.
Good reasons for using iframes are:
Support for
<iframe>
is still there in HTML 5, so I don't think this will change in the near future.To answer your other questions:
<iframe>
s (as frames in general) are most of the time not user-friendly:<div>
To be clear: I'm talking about
<iframe>
as an interface element. Not a hidden element for loading other stuff like e.g. Google Mail does.IFrames are used a lot with AJAX. GMail for example, uses nine hidden IFrames I believe.
In my opinion the W3C jumped the gun in dumping iframes from the Strict HTML and XHTML doctypes. In theory you would use the
<object>
element to add foreign objects to your document, but browser differences and limitations have made this a nonstarter for many developers. With the much-more-pragmatic HTML 5 (which is still a draft), iframes are back and even have two new attributes:seamless
, and the intriguingsandbox
.