CLASSID
When an ActiveX control is installed on a user 's computer, it is registered in the system registry with a unique class ID. The CLASSID attribute, which contains the class ID, is the only required attribute for the <OBJECT> tag.Syntax
This is the syntax for the CLASSID attribute:CLASSID = "clsid:12345678-1234-1234-1234-123456789012"
Example
This example shows the <OBJECT> tag for the Calendar control:<OBJECT classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" > </OBJECT>
ID
The ID attribute enables you to refer to the object from VBScript.Example
This example shows how to set the ID attribute of the Calendar control:<OBJECT classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" id=cldCalendar2 > </OBJECT>
CODEBASE
The CODEBASE attribute is a Uniform Resource Locator (URL) that points to a file containing the implementation of an object.WIDTH, HEIGHT, ALIGN, HSPACE, VSPACE, and BORDER
These attributes affect the way in which an object is positioned and sized on an HTML page, and whether or not it is contained in a border.The Registry Editor enables you to change settings in your system registry. You can also use it to view and copy the class ID for an object.
The OLE Viewer is installed with the Win32 Software Development Kit (SDK). You can use the Copy HTML <object> Tag to Clipboard command on the Object menu to copy the <OBJECT> tag to the Clipboard, and then paste the tag into an HTML page or an Active Server Page.
The class ID for the Calendar control will be displayed on the left side of the window as an opened folder. The class ID should be similar to the following:
{8E27C92B-1264-101C-8A2F-040224009C02}
NoteIf a Web browser supports the <OBJECT> tag but the user does not install the ActiveX control, the Web browser displays an invalid control icon rather than provide the alternative functionality.
For example, for Web browsers that do not display the Calendar control, you can place a text box control on the Web page so that the user can still enter the date.
Example
This example places a text box control on a Web page:<OBJECT classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" >Best if viewed with Internet Explorer 4.0.<P> Type a date here: <INPUT TYPE=TEXT NAME="Date" MAXLENGTH=10 SIZE=10> </OBJECT>