The HTML5 spec includes local storage for data. There are three persistence options.
- Session Store
- Local Store
- Web Database
The session and local store are very easy to access and store data in. The Web Database is much more complex and the spec does not currently define a SQL Dialect, though Safari and Mobile Safari are using SQLite3 (I believe).