Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML html manifest attribute

HTML manifest attribute

HTML html Tag Reference HTML Tag

Example

An HTML document with a cache manifest (for offline browsing):

FirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, Opera, Chrome, and Safari support the manifest attribute.

**Note:** Internet Explorer 9 and earlier versions do not support the manifest attribute.


Definition and Usage

The manifest attribute specifies the location of the document's cache manifest.

HTML5 introduces application caching, which means web applications can be cached and accessed when there is no internet connection.

Application caching gives applications three advantages:

  1. Offline browsing - users can use the application while offline
  2. Faster - cached resources load more quickly
  3. Reduced server load - the browser only downloads updated/changed resources from the server

The manifest attribute should be included on every page of your web application that you want to cache.

A manifest file is a simple text file that lists the resources the browser caches for offline access.

To learn more about how to create a manifest file, read our HTML5 Application Cache section.


Differences between HTML 4.01 and HTML5

The manifest attribute is new in HTML5.


Syntax

  • Relative URL - points to a file within the website (such as href="demo.appcache")
  • |

    HTML html Tag Reference HTML tag