Explain APIs introduced by HTML5

HTML 5 has introduced the following API methods:

  • High-Resolution Time API: It gives the current time in resolution to sub-millisecond, independent of system clock skew or adjustments.
  • User Timing API: This allows accurate measurement of JavaScript code performance.
  • Navigation Timing API: It helps in the assessment of time-lapse log during page load delays and takes account of page redirect, DNS lookup, and time to construct DOM, TCP connection delays, etc.
  • Network Information API: It helps identify web visitor’s connection type and status of the entire bandwidth log.
  • Vibration API: It can stimulate reaction during certain events in gaming applications by vibrating user devices (mobile phone) giving ultimate user experience.
  • Battery Status API: It offers information about device battery state such as charging, remaining seconds till it is fully discharged, etc.
  • Page Visibility API: It gives details about page visibility statuses like minimized, currently focused, providing decisions on stopping CPU or bandwidth consumptions.
  • Fullscreen API: It enables a full-screen display from the user based on the specification of the application.
  • getUserMedia API: It provides access to multimedia streams such as video, audio, or both embedded in a web page.
  • WebSocket API: It maintains a persistent connection between browser and server.
  • Geolocation API: This helps track the geographical location of the place and people via Global Positioning System (GPS) and retrieves latitude and longitude thereby plot real-time position on the map.