1.

Explain different APIs provided in HTML5.

Answer»

The different APIs provided in HTML5 are:

  1. History API: This API gives access to the browser’s history.
  2. User Timing API: This API provides developers with high-precision timestamps to measure JavaScript code performance.  
  3. High-Resolution Time API: This API gives the current time in a sub-millisecond resolution independent of system clock skew or adjustments.
  4. Battery Status API: This offers information about the device's current battery status LIKE power SOURCE, battery CHARGE level, expected time to charge or discharge, etc.
  5. Navigation Timing API: This API lets developers obtain accurate timing information related to navigation such as time required for domain lookup, redirection, time to construct the DOM, etc.  
  6. Vibration API: This API provides access to the vibration mechanism of devices using which developers can simulate the vibration of devices in order to trigger certain events.
  7. Page Visibility API: This API enables us to determine the current visibility status of the page such as currently focused, minimized, etc.  
  8. Network Information API: This API enables applications to access information about the network connection in use by the device, using which we can identify the connection TYPE and status of the entire bandwidth log.
  9. Geolocation API: This API helps in tracking the location of the device using the Global Positioning System (GPS). Using this API, we can retrieve the latitude and the longitude of the current location.


Discussion

No Comment Found