classid (HTML attribute)

Spec
Depr. Version
No HTML 4
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2+
Full Full Full Full Full

Syntax

classid="class ID"

Description

The classid attribute provides a reference that the browser can use to understand how the object should be implemented. It’s usually used to ensure that the browser has the correct version of the control.

Example

This example shows the definition of a classid attribute for a Flash movie:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
➥swflash.cab#version=9,0,28,0" width="320" height="285" title="Flash
    tester">
  <param name="movie" value="flash-test.swf"/>
  <param name="quality" value="high"/>
  ⋮
</object>

Value

This attribute takes as its value the URI of a document on the Web, or an internal reference in the form of "classid:object-id", as shown in the example above ("classid:D27CDB6E-AE6D-11cf-96B8-444553540000").

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full

The compatibility of this attribute depends upon the type of object with which it is used.

User-contributed notes

There are no comments yet.

Related Products