Accenture Interview Question

what are the updated API's in HTML5

Interview Answer

Anonymous

Feb 18, 2018

There are five famous APIs in html5 1. Geolocation- It is used to locate the user position only if user allows. To access the user location getCurrentPosition() method is used. 2. Drag and Drop - It is very common feature in which you "grab" an object and drag it to a different location. It is standard in html5 3. Web Storage- web applications can store data locally within the user's browser. Before web storage, data used to stored in cookies in every server requests. It is very secure and can store data in large amount upto 5mb and information is never transferred to server. 4. Web worker - A web worker is a JavaScript running in the background, without affecting the performance of the page. You can continue to do whatever you want: clicking, selecting things, etc., while the web worker runs in the background. 5. SSE- Server sent Event is when a web page automatically gets updates from a server. This was also possible before, but the web page would have to ask if any updates were available. With server-sent events, the updates come automatically. Examples: Facebook/Twitter updates, stock price updates, news feeds, sport results, etc.