โ† All HTML5 Flashcard Decks

HTML5 Web Storage and APIs Flashcards

6 cards from real HTML5 practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 6 HTML5 Web Storage and APIs flashcards as text
  1. Which HTML5 API allows web pages to run scripts in background threads?

    Answer: Web Workers API

    The Web Workers API lets you run JavaScript in a separate background thread, preventing heavy computations from blocking the main UI thread.

  2. What is the main use case of the Service Worker API?

    Answer: Enabling offline functionality and caching via a proxy between browser and network

    Service Workers act as a network proxy, enabling offline support, background sync, and push notifications by intercepting fetch requests.

  3. Which method removes a specific item from localStorage?

    Answer: localStorage.removeItem(key)

    The removeItem(key) method removes the key-value pair with the specified key from localStorage.

  4. What does the HTML5 Drag and Drop API's 'dataTransfer' object do?

    Answer: Holds the data being dragged during a drag-and-drop operation

    The dataTransfer object holds the data and state of a drag-and-drop operation, allowing you to set and retrieve data being dragged.

  5. Which HTML5 API allows a web page to request full-screen mode for an element?

    Answer: Fullscreen API

    The Fullscreen API provides methods like requestFullscreen() to display a specific element in full-screen mode.

  6. What does the HTML5 Notification API enable?

    Answer: Displaying native OS-level notifications from a web page

    The Notification API lets web pages request permission to display system-level notifications outside the browser window.