HTML manifest Attribute
HTML Attribute Reference
HTML manifest Attribute
CompletedExample
A HTML document with a cache manifest (for offline browsing):
<!DOCTYPE HTML>
<html manifest="demo.appcache">
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>
Try it Yourself
Definition and Usage
CompletedThe manifest attribute specifies the location of the document's cache manifest.
HTML5 introduces application cache, which means that a web application is cached, and accessible without an internet connection.
Application cache gives an application three advantages:
- Offline browsing - users can use the application when they're offline
- Speed - cached resources load faster
- Reduced server load - the browser will only download updated/changed resources from the server
The manifest attribute should be included on every page of your web application that you want cached.
The manifest file is a simple text file that lists the resources the browser should cache for offline access.
To learn more about how to create the manifest file, please read ourHTML5 Application Cache chapter.
Browser Support
Completed| Attribute | |||||
|---|---|---|---|---|---|
| manifest | 4.0 | 10.0 | 3.5 | 4.0 | 10.6 |
Syntax
Completed<html manifest="URL">
Attribute Values
Completed| Value | Description |
|---|---|
| URL | The address of the document's cache manifest. Possible values:
|
