Which storage mechanism persists data with no expiration date?

Learn web design with our comprehensive test guide. Improve your skills with flashcards and multiple choice questions. Each question includes hints and explanations. Get ready to ace your exam!

Multiple Choice

Which storage mechanism persists data with no expiration date?

Explanation:
Persisting data in the browser across sessions is what this item is testing. Local storage is a simple key-value store that keeps data with no expiration date, so everything you save there remains until you actively remove it—even after you close and reopen the browser or navigate to other pages on the same origin. It’s designed for persisting user preferences, tokens, or other small bits of data between visits. In contrast, session storage only lasts for the duration of the current browsing session; once you close the tab or window, that data is cleared. A web worker isn’t a storage mechanism at all—it's a background script for running tasks concurrently. And contenteditable is an attribute that makes an element editable by the user, not a means of storing data.

Persisting data in the browser across sessions is what this item is testing. Local storage is a simple key-value store that keeps data with no expiration date, so everything you save there remains until you actively remove it—even after you close and reopen the browser or navigate to other pages on the same origin. It’s designed for persisting user preferences, tokens, or other small bits of data between visits.

In contrast, session storage only lasts for the duration of the current browsing session; once you close the tab or window, that data is cleared. A web worker isn’t a storage mechanism at all—it's a background script for running tasks concurrently. And contenteditable is an attribute that makes an element editable by the user, not a means of storing data.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy