Since tags are depreciated, new tags/CSS are to replace them (except DOM, which is a little off topic here). The <applet> and <iframe> tags were replaced by <object>. Yes, <object> is for inserting any foreign object into XHTML documents.
Since IFRAMES include HTML/XHTML documents, the MIME type for the document is "text/html" or "application/xhtml+xml". We will assume the first one because it is compatible with ALL browsers including Internet Explorer. There is of course a way to serve the latter one to Mozilla-derivatives and Opera using PHP but I'll save that for another tutorial.
So you have your MIME type, URL source and <object> tag. Put it together with like this:
A little more detail:
A variety of attributes work with the <object> tag. The elements are:
- align - Aligns the object. Use CSS instead.
- archive - The URL for archived versions.
- border - The border around the object. Use CSS instead.
- classid - Defines a ClassID in the registry.
- codebase - Defines where the code is for the object??
- codetype - The MIME type for the code in the above 2 values??
- data - The URL of the object (required).
- height - Height of object. Use CSS instead.
- hspace/vspace - Margins around the object. Use CSS instead.
- name - The name of the object if you are using it in JavaScript/VBScript or some other scripting language.
- standby - Text to display when loading
- type - The MIME type of the object (explained above). Required.
- width - Width of object. Use CSS instead.
Purple attributes MAY be incompatible with browsers. From personal experience, adding those attributes will only render it in Internet Explorer. We don't want that to happen.
All of these attributes + CSS is intended to replace all attributes of <iframe>. The only one I couldn't find easily was "scrolling" in <iframe>. Using CSS, the {overflow:scroll} thing works the same (haven't tested).
This is my first tutorial, sorry if I was a bit unclear about things.


