Multiple choice technology web 2.0

What are the new objects in HTML5 that offers storing data on the client?

  1. cookie

  2. sessionStorage

  3. dataStorage

  4. localStorage

Reveal answer Fill a bubble to check yourself
B,D Correct answer
Explanation

HTML5 introduced Web Storage API with sessionStorage (data cleared when session ends) and localStorage (persists until deleted). Cookies are an older mechanism with size limitations, and dataStorage is not a valid HTML5 storage object.

AI explanation

HTML5 introduced the Web Storage API, which provides two new client-side storage mechanisms: localStorage (persists data with no expiration, across browser sessions) and sessionStorage (persists only for the duration of the page session/tab). Cookies predate HTML5 by many years and aren't a new HTML5 object, and 'dataStorage' is not a real HTML5 API — it's a distractor.