title: Auto-save all inputs value to localStorage and restore them on page reload
body: <p>I'm about to code, in Javascript some code (involving looping on each <code>&lt;input&gt;</code> and adding listeners):</p>
  
  <ul>
  <li>allowing, after keypress, to save all <code>&lt;input&gt;</code> values to <code>localStorage</code></li>
  <li>restore all <code>&lt;input&gt;</code> values from <code>localStorage</code> in the case the page/browser has been closed and reopened on the same page</li>
  </ul>
  
  <p><strong>But maybe is there an automatic way, provided by the browsers?</strong></p>
  
  <p>e.g. by adding an attribute to <code>&lt;input&gt;</code>, similar to <code>&lt;input autofocus&gt;</code> (which is not related here)</p>
  
  <p>Question: is there an autosave feature of <code>&lt;form&gt;</code> <code>&lt;input&gt;</code> HTML tags?</p>