The server is open to storing huge amounts of data and information, but at the same time, this would mean burdening the server with frequent requests for data retrieval. Most important of all, it requires the online presence of the user.
To counter these shortcomings, HTML 5 came up with two novel ways of storing information on client side servers. They were sessionStorage and localStorage. Together, they are known as DOM storage.
Using DOM sessionStorage and localStorage to persist larger amounts of info is another way to use the enhanced storage capacity of contemporary browsers.