Start tag: required
End tag: required
Attributes: declare, classid, codebase,
data, type, codetype, archive, standby,
height, width, usemap, border, hspace,
vspace. id, class, lang, title, style,
onclick, ondblclick, onmousedown,
onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown,
<object> is used to embed objects within a document. The object could need an application to render it or the user agent might already be able to do so. Attributes are declare, classid, codebase, data, type, codetype, archive, standby, height, width, usemap, border, hspace, vspace.
declare makes the object a declaration. classid is used to specify the location of the objects data. codebase specifies the base URL for classid, archive, and data. data is used to specify the location of the objects data. type specifies the type of data. codetype specifies the objects data type. archive specifies a URL to information on the object. standby specifies a message that the user agent should display until the object renders. height sets the height of the object. width sets the width of the object. usemap is used for client side imagemaps. border sets the border around the object. hspace sets the horizontal space around the object. vspace sets the vertical space around the object.
<iframe frameborder="0" scrolling="No" src="content.html">
Sorry, your browser does not support the iframe or ilayer tags,
which are required for this section of the page to be visible.
The advantages are as follows:
The object tag is reserved as a plugin tag. Meaning it is supported by both browsers and styles are applied to embedded objects. (nested doc's).
In the second example two tags are replacing the 1 tag needed in my first example to do the same thing in both browsers. Basically, using SSI (Server Side Includes) without the server being setup for it.
The two methods actuallly are used when you would like to use one of the following however, server limitations do not allow it:
The real advantage here is that by using the any of the above you can of course use a single file to be for example a header file. (ie the navigation on top or left of your screen). Having no need for many copies of the same code for each page you lessen the load to the client by not having to send the client a new copy of every page. Rather, you use what they have already cached locally.