Re: Netscape Plug-ins and <OBJECT>

Dave Raggett (
Wed, 17 Sep 1997 09:39:06 -0400 ()

Date: Wed, 17 Sep 1997 09:39:06 -0400 ()
From: Dave Raggett <>
To: Rick Darnell <>
In-Reply-To: <>
Message-ID: <>
Subject: Re: Netscape Plug-ins and <OBJECT>

On Tue, 16 Sep 1997, Rick Darnell wrote:

> What would the correct syntax be for including a plug-in with the
> new HTML <OBJECT> tag? I'm assuming that it's similar to adding
> images, by using the _data_ attribute to identify the content and
> _type_ to identify the MIME type. Is _codetype_ or _classid_
> needed to help the browser find the plug-in application on the
> user's machine (such as ActiveX controls)? 

Assuming the browser has a dictionary that binds Content types 
to plugins, then in principle, the following would work:

  <object data=foo>
   a picture of foo

The above gets the Content type when it downloads the data.

  <object data=foo type="image/gif">
   a picture of foo

This one provides in advance that the data is "image/gif"

  <object data=foo width=100 height=60>
   a picture of foo

This specifies the with and height for the image. The image
will be scaled if necessary to this size.

You can also provide parameters via the PARAM element in
basically the same way as for APPLET.

Note that current implementations may not yet be capable
of the above examples.


-- Dave Raggett <>
phone: +44 122 578 2521 (office) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)