The classid attribute on <object> named the URL of the implementation that should run the embedded content — often a clsid: ActiveX identifier in Internet Explorer–era pages (Flash, media players, and similar plugins).
For new work, use data and type. Related obsolete siblings include codebase, archive, and codetype. Do not confuse it with the global class attribute.
Deprecated / Obsolete.
Do not use classid on <object>. The HTML living standard lists it as obsolete — prefer data and type. Learn it to read legacy markup, not to ship it.
Syntax
HTML Syntax
syntax.html
<object classid="URL">
Historically a URL or clsid:… identifier naming the component implementation.
codebase hinted where to fetch related plugin files.
param passed name/value settings into the plugin.
All of this is obsolete in the living standard.
Example 3 — Modern Object Without classid
What the living standard recommends: data + type, with clear fallback text.
HTML
<object data="/media/report.pdf" type="application/pdf">
<p>
PDF preview is unavailable.
<a href="/media/report.pdf">Download the report</a>.
</p>
</object>
No classid — obsolete plugin attributes are omitted.
data + type describe the resource the browser should load.
Fallback keeps the page usable when embed fails.
Use this pattern for new <object> embeds.
Edge Cases & Pitfalls
Treat classid as historical — ActiveX and NPAPI plugins are gone from the modern web.
obsolete
Not for new HTML
Validators flag classid on <object>. Remove it when you modernize templates.
vs class
Unrelated to CSS class
class styles and scripts elements. classid was a plugin implementation URL — different attribute entirely.
param
Named classid parameter
Old guidance: if a plugin needed a parameter named classid, use <param> — still not a reason to ship plugins today.
security
Plugins were a security risk
Browsers removed plugin APIs for good reason. Do not reintroduce ActiveX/Flash patterns.
family
Same fate as archive / codebase
archive, codebase, code, and codetype on object are obsolete too — same replacement: data + type.
Compatibility
Browser Support
classid is a legacy HTML attribute for plugin implementations. Engines may still parse it, but ActiveX/NPAPI plugins no longer run.
✓ Deprecated · Obsolete
classid
Recognized in old documents for compatibility. Modern browsers do not execute ActiveX or Flash via classid. Prefer data and type on object.
LegacyParse only
Google ChromeIgnored for plugins
Obsolete*
Mozilla FirefoxIgnored for plugins
Obsolete*
Apple SafariIgnored for plugins
Obsolete*
Microsoft EdgeIgnored for plugins
Obsolete*
OperaIgnored for plugins
Obsolete*
Samsung InternetIgnored for plugins
Obsolete*
Internet ExplorerActiveX era
Legacy*
classidObsolete (do not use)
Bottom line: *Parsed for old pages at best — not recommended. Do not build new features on classid or plugins.
Remember
Key Takeaways
Role: named the plugin/component implementation for <object>.
Status: obsolete — keep for reading legacy HTML only.
Replace with:data + type on <object>, plus fallback content.
Not CSS class — different attribute, different purpose.
One line: learn classid for old plugin markup — ship data and type instead.
Frequently Asked Questions
On object, classid named the URL (often a clsid: ActiveX identifier) of the plugin or component implementation used to run the embedded content.
Yes. The HTML living standard marks classid on object as obsolete. Authors must not use it. Prefer data and type.
The object element. It was part of the old plugin / ActiveX embedding model.
Use object with data (resource URL) and type (MIME type). If a plugin needed a parameter named classid, the old advice was a param element — plugins themselves are obsolete in modern browsers.
No. class is a global CSS/JS hook. classid was a legacy object implementation URL, unrelated to CSS classes.
Yes for reading old markup (Flash/ActiveX pages). Do not use it in new projects.