Introduction to HTML5 DOMStorage API with Example


News: Introduction to HTML5 DOMStorage API with Example

  1. Introduction to HTML5 DOMStorage API with Example (1 messages)

    HTML5 is a standard for structuring and presenting content on the World Wide Web. The new standard incorporates features like video playback and drag-and-drop that have been previously dependent on third-party browser plug-ins such as Adobe Flash and Microsoft Silverlight.

    HTML5 introduces a number of new elements and attributes that reflect typical usage on modern websites. Some of them are semantic replacements for common uses of generic block (<div>) and inline (<span>) elements, for example <nav> (website navigation block) and <footer> (usually referring to bottom of web page or to last lines of html code). Other elements provide new functionality through a standardized interface, such as the multimedia elements <audio> and <video>.

    In addition to specifying markup, HTML5 specifies scripting application programming interfaces (APIs). Existing document object model (DOM) interfaces are extended and de facto features documented.

    Read more about DOM Storage API:

  2. Example for localStorage[ Go to top ]

    Here is a real example for localStorage in JSP:

    Lets you assign an unique ID for the each client