The manifest attribute on the root <html> element pointed to a cache manifest file (often .appcache) for the old Application Cache API. Listed resources could then load while offline.
The HTML Standard lists it as obsolete: authors must not use it. Use Service Workers for offline caching. Do not confuse it with <link rel="manifest"> (Web App Manifest JSON for PWAs).
Deprecated / obsolete.
Application Cache was removed from major browsers. Learn manifest only to recognize legacy markup and migrate away from it.
Syntax
HTML Syntax
syntax.html
<html manifest="url">…</html>
Modern equivalent: register a Service Worker for offline files; optionally add <link rel="manifest" href="…"> for PWA metadata (different feature).
Uses rel on <link>. Same word “manifest,” different mechanism than the obsolete html attribute.
How It Works
Place it in head. A <link> points at a JSON (or .webmanifest) file.
rel value.rel="manifest" tells the browser this is a Web App Manifest.
Not AppCache. It does not list offline assets the way .appcache did.
Keep lang. Pair the root lang attribute for accessibility; omit obsolete manifest.
Example 3 — Service Worker Direction
The HTML Standard replacement for AppCache is a Service Worker that caches responses.
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Offline via Service Worker</title>
</head>
<body>
<p id="status">Checking Service Worker support…</p>
<script>
var el = document.getElementById("status");
if ("serviceWorker" in navigator) {
el.textContent =
"Supported. Register a worker (e.g. /sw.js) to cache assets — do not use html manifest.";
// navigator.serviceWorker.register("/sw.js");
} else {
el.textContent = "Service Workers are not available in this environment.";
}
</script>
</body>
</html>
Most mistakes come from mixing up AppCache with the Web App Manifest or hoping the old attribute still works.
name clash
Same word, two features
html manifest ≠ <link rel="manifest">. One is removed AppCache; the other is current PWA JSON metadata.
scope
Only on <html>
The obsolete attribute belonged on the document root — never on <link>, <head>, or <body>.
js
JS cannot revive AppCache
document.documentElement.setAttribute("manifest", …) does not restore offline caching in modern engines.
migrate
Replace, don’t stack
Do not keep manifest “for old browsers.” Remove it and implement a Service Worker (and optional Web App Manifest) instead.
mime
Legacy MIME quirks
Historical AppCache files often needed text/cache-manifest. That pipeline is gone; do not reintroduce it for new apps.
Compatibility
Browser Support
manifest on <html> is a legacy HTML attribute tied to Application Cache, which major browsers have removed.
✓ Obsolete · Do not use
manifest
AppCache support was removed (Chrome ~85+, Firefox, Safari, Edge). The HTML Standard: use Service Workers instead. Do not ship html manifest.
RemovedNot for new work
Google ChromeAppCache removed
Obsolete*
Mozilla FirefoxAppCache removed
Obsolete*
Apple SafariAppCache removed
Obsolete*
Microsoft EdgeAppCache removed
Obsolete*
OperaAppCache removed
Obsolete*
Samsung InternetAppCache removed
Obsolete*
Internet ExplorerLegacy era only
Legacy*
manifestObsolete — AppCache removed
Bottom line: *Do not ship html manifest. Use Service Workers for offline caching; use link rel="manifest" only for Web App Manifest JSON.
Remember
Key Takeaways
Status: obsolete on <html> — omit in new HTML.
Replace with: Service Workers for offline; optional link rel="manifest" for PWA JSON.
Don’t confuse names: AppCache attribute ≠ Web App Manifest link.
Goal: recognize legacy markup, then remove it — browsers already did.
One line: drop html manifest — cache offline with a Service Worker, not Application Cache.
Frequently Asked Questions
On the html element, manifest pointed to a cache manifest file (often .appcache) for the Application Cache API so listed resources could load offline. Application Cache has been removed from modern browsers.
No. The HTML Standard marks it obsolete: authors must not use it. Use Service Workers for offline caching instead.
No. html manifest linked to an AppCache text file (removed). link rel="manifest" links to a JSON Web App Manifest for PWA install metadata — a different, current feature.
Only the root html element. It never applied to link, head, or body.
Register a Service Worker and cache assets from the worker script. Optionally add link rel="manifest" for PWA metadata — that is not AppCache.
No. Setting the attribute in JavaScript does nothing useful today because Application Cache support was removed.