HTML5 adds an attribute to the specification that has been supported by many browsers for a long time:
contenteditable. This attribute tells the browser that the contents should be changeable by anyone using the web page. In this tutorial you will learn more about this useful attribute and how to create a simple to-do list with it and localStorage.
Read the full article: Making Web Page Content Editable by Users