<meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" l gen true for "http://www.apple.com" r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.apple.com" r (n 0 s 0 v 0 l 0))'>
<p>The HTML5 SQL database API is a powerful technology that enables structured storage in a client-side database. As you create notes, JavaScript is used to execute SQL statements to store the position and text of each note in a database on your computer. When you revisit the Sticky Notes demo page, information for each note is retrieved from the database to restore the page to the state that you left it in. If you're viewing the Sticky Notes demo in Safari on the desktop, you can inspect the contents of the client-side database in the Web Inspector.</p>
<p class="aboveList">In this example:</p>
<ul class="square">
<li>The HTML5 SQL database API stores and restores the state of the notes.</li>
<li>DOM touch events enable note dragging on iOS.</li>
<li>CSS3 animates note deletion.</li>
</ul>
<h3>Related Resources</h3>
<ul class="icons">
<li class="book"><a href="/safari/library/documentation/AppleApplications/Reference/SafariHTMLRef/Introduction.html">Safari HTML Reference</a></li>
<li class="book"><a href="/safari/library/documentation/AppleApplications/Reference/WebKitDOMRef/">WebKit DOM Reference</a></li>
<li class="book"><a href="/safari/library/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/">Safari Client-Side Storage and Offline Applications Programming Guide</a></li>
<li class="book"><a href="/safari/library/documentation/AppleApplications/Reference/SafariJSRef/index.html">Safari DOM Extensions Reference</a></li>
<li class="book"><a href="/safari/library/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html">Safari Web Content Guide: Handling Events</a></li>
<li class="book"><a href="/safari/library/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/1Introduction/Introduction.html">Safari User Guide for Web Developers</a></li>
<h1>You’ll need to download Safari to view this demo.</h1>
</header>
<p>This demo was designed with the latest web standards supported by Safari. If you’d like to experience this demo, simply download Safari. It’s free for Mac and PC, and it only takes a few minutes.</p>
<li class="promo"><h3>Preparing Your Web Content for iPad</h3>
<p><a href="http://developer.apple.com/safari/library/technotes/tn2010/tn2262.html">Learn how to make your website look and work great on iPad.</a></p>
<p class="cheat"><a href="http://webkit.org/">Developed by Apple, WebKit is the most advanced browser engine, drawing the web pages you see in Safari.</a></p>
<p class="gf-buy">Shop the <a href="http://www.apple.com/store/">Apple Online Store</a> (1-800-MY-APPLE), visit an <a href="http://www.apple.com/retail/">Apple Retail Store</a>, or find a <a href="http://www.apple.com/buy/locator/">reseller</a>.</p>