O'Reilly logo

Instant HTML5 Local Storage How-to by Alex Libby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a stickies option for using in a browser (Become an expert)

We begin the first of our demos. This looks at building a basic stickies option, as a practical introduction to using Local Storage.

Getting ready

For this recipe, you will need your normal text editor, as well as the code that accompanies this book.

How to do it...

Perform the following steps, to build a stickies option for using in a browser:

  1. Let's begin with creating a new HTML document. Save the following code as stickies.html:
    <!DOCTYPE html> <head> <title>Storing content using Stickies and LocalStorage</title> <meta charset="utf-8" /> <link href= "http://fonts.googleapis.com/css?family= Reenie+Beanie:regular" rel="stylesheet" type="text/css"> <link rel="stylesheet" type= "text/css" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required