APIs of HTML5 - HTML

Q.  Which of the following is / are the new APIs of HTML5?
- Published on 27 Aug 15

a. HTML Geolocation
b. HTML Drag & Drop
c. HTML Web Workers
d. All of the above

ANSWER: All of the above
 

    Discussion

  • Nirja Shah   -Posted on 06 Nov 15
    - Some of the new and most interesting API's for HTML5 are:

    1. HTML Geolocation
    - This API helps in getting the geographical position of the user.
    - As this API compromises with the user privacy the position will not be available unless the user approves of it.

    2. HTML Drag and Drop
    - It is one of the common features which helps in grabbing an object and drag it into a different position.

    3. HTML Local Storage
    - With the help of this API web applications can store data locally within the users browser.
    - It is a replacement for cookies.

    4. HTML Application Cache
    - This API helps in making an offline version of a web application by creating a manifest file.

    5. HTML Web Workers
    - It is a JavaScript running in the background, without affecting the performance of the page.
    - The page becomes unresponsive until the script is finished while executing scripts in an HTML page.
    - You can continue to do whatever you want: clicking, selecting things, etc., while the web worker runs in the background.

    7. HTML SSE
    - It is known as Server Sent events.
    - It helps the web pages to get automatic updates from a server.
    - Example: Facebook,Twitter updates, stock price updates etc.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)