What is an API In HTML 5..? Web storage Definition

API is an interface that provides facilities to access the predefined code without showing the programming logic so that it also maintains security and privacy.

Table of Contents

Types of API :

  • Web Storage 

  • Web Workers 

  • Server-sent Events

  • Drag and Drop 

  • Geolocation 

Web storage:

Web storage is an API that provides the features to maintain the history of a user in the form of cookies and sessions. But before the web storage, it is main Tain by server-side language. Like php jsp servlet etc.

In web storage class is defined to perform the cookie & session management.

There are two types of web storage:

a) localStorage :
b) sessionStorage:

Local storage works as a cookie & sessionStorage works as a Session

Read: What is cryptocurrency and how to beginners use it in 2022?

Share Now

Leave a Reply

Your email address will not be published. Required fields are marked *