JSFiddle - React, Tailwind, and code Playground

by thecoz21

HTML

<form> 
<input type="text" name="nome" placeholder="Sandro" required><br/>
<input type="color" name="colore" required><br/>
<input type="submit" value="salva">
</form>

<br/>
<strong>elementi inseriti</strong> <a href="#" id="cancella">cancella</a>
<ul>

</ul>

JavaScript

var form = document.forms[0],
    ul = document.querySelector('ul'),
    del = document.querySelector('#cancella');


localStorage.setItem('k1', 'valore2');