Edit any tag value any time (contenteditable keyword) HTML5

How to declare :

<h2 contenteditable=”true”> To-Do List </h2>
<ul contenteditable=”true”>
<li> Break mechanical cab driver. </li>
<li> Drive to abandoned factory</li>
<li> Watch video of self </li>
</ul>

Output :
Click on any text and change it and show the result.

 

To-Do List

  • Break mechanical cab driver.
  • Drive to abandoned factory
  • Watch video of self

Leave a Reply