HTML5 offline support and how to do synchronize with backend database
===

I am new to HTML5,very sorry if my question sounds silly to you. I want to understand HTML5 offline capacity. AIM is that application developed will save data in local database (browser) and when application is online the changes will be sent to the server for synchronization,similarly local database will be synchronized with remote database periodically or server will push changes to client. I was reading about HTML5 web databases,but I found that it is deprecated. There is one more support available called as IndexDB. can any one please tell me to accomplish this task which one I should focus? Is it possible with HTML5 as of now?