HTML/CSSAdvanced#storage#javascript

What is IndexedDB used for?

A low-level, transactional, client-side database in the browser for storing large amounts of structured data (including files/blobs), supporting indexes and queries, unlike the simple key-value storage of localStorage.

Example
const request = indexedDB.open('MyDB', 1);
request.onupgradeneeded = (e) => {
  const db = e.target.result;
  db.createObjectStore('notes', { keyPath: 'id' });
};

Related Questions

1
HTML/CSSAdvanced#storage#pwa

What is the Cache API and how does it relate to Service Workers?

Open
2
HTML/CSSIntermediate#css#specificity

What is CSS specificity and how is it calculated?

Open
3
HTML/CSSBeginner#css#box-model

What is the CSS box model?

Open