The archive attribute listed space-separated URLs of archive files (often JAR files) that held resources for an embedded <object>. It was also used on the obsolete <applet> element for Java applets.
For new work, point <object> at the resource with data and type. Related legacy attributes include codebase and classid.
Deprecated / Obsolete.
Do not use archive on <object>. The HTML living standard lists it as obsolete — prefer data and type. Learn it to read old markup, not to ship it.
Syntax
HTML Syntax
syntax.html
<object archive="URLURL …">
URLs are separated by spaces (not commas). Relative or absolute paths were both allowed.
Order was implementation-defined — treat the list as a set of URLs.
Comma lists are wrong for this attribute (unlike accept).
Example 3 — Modern Object Without archive
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 archive — 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 archive as historical — applets and plugin JARs are gone from the modern web.
obsolete
Not for new HTML
Validators flag archive on <object>. Remove it when you modernize templates.
spaces
Space-separated, not commas
Unlike accept, multiple URLs used spaces. Commas were incorrect for this attribute.
applet
<applet> is also obsolete
Do not revive Java applets. Browsers dropped the NPAPI/plugin path years ago.
param
Spec hint for named parameters
Old guidance: if a plugin needed a parameter named archive, use <param> — still not a reason to ship applets today.
vs codebase
Different from codebase
archive listed archive file URLs; codebase was a base directory for class/resources. Both are obsolete on object.
Compatibility
Browser Support
archive is a legacy HTML attribute for plugin/applet resources. Engines may still parse it, but Java applets no longer run.
✓ Deprecated · Obsolete
archive
Recognized in old documents for compatibility. Modern browsers do not execute applet JAR workflows. Prefer data and type on object.
LegacyParse only
Google ChromeAttribute ignored for applets
Obsolete*
Mozilla FirefoxAttribute ignored for applets
Obsolete*
Apple SafariAttribute ignored for applets
Obsolete*
Microsoft EdgeAttribute ignored for applets
Obsolete*
OperaAttribute ignored for applets
Obsolete*
Samsung InternetAttribute ignored for applets
Obsolete*
Internet ExplorerLegacy applet era
Legacy*
archiveObsolete (do not use)
Bottom line: *Parsed for old pages at best — not recommended. Do not build new features on archive or Java applets.
Remember
Key Takeaways
Role: list space-separated archive (JAR) URLs for an embedded object.
Status: obsolete on <object> — keep for reading legacy HTML only.
Replace with:data + type on <object>, plus fallback content.
List syntax: spaces between URLs — not commas.
One line: learn archive for old applet/object markup — ship data and type instead.
Frequently Asked Questions
On object (and historically applet), archive listed space-separated URLs of archive files — usually JARs — that held extra resources for the embedded content.
Yes. The HTML living standard marks archive on object as obsolete. Authors must not use it. Prefer data and type on object.
Primarily object. It was also used on the obsolete applet element for Java applets.
Yes. Use a space-separated list of URLs, for example archive="lib1.jar lib2.jar".
Use object with data and type for the resource. If a plugin needed an archive-named parameter, the old advice was a param element — but Java applets no longer run in modern browsers.
Yes for reading legacy pages. Do not use it in new projects.