HTML html manifest attribute
Examples
HTML document with a cache manifest (for offline browsing):
<html manifest = "demo .appcache" >
<Head>
<Title> Document Title </ title>
</ Head>
<Body>
Content of the document ......
</ Body>
</ Html>
try it"
Browser Support
Internet Explorer 10, Firefox, Opera, Chrome and Safari support manifest attribute.
Note: 9 and earlier versions of Internet Explorer does not support manifest attribute.
Definition and Usage
manifest cache manifest attribute specifies the location of the document.
HTML5 introduces application cache, which means that Web applications can be cached, and then when no Internet connection to access.
Application cache allows the application has three advantages:
- Offline browsing - users can use the application while offline
- Fast - cached resources load faster
- Reduce server load - the browser only be downloaded from the server has been updated / changed resources
manifest attribute should be Web application caches each page you want to include.
manifest file is a simple text file, include the resource browser to cache for offline access.
To learn more about how to create a manifest file, please read our HTML5 application cache section.
Differences between HTML 4.01 and HTML5
manifest attribute is new in HTML5 attributes.
grammar
Property Value
值 | 描述 |
---|---|
URL | 文档的缓存 manifest 的地址。 可能的值:
|
HTML <html> tag