Sometime making a text element editable makes sense such as div , span or p than having to create a text input field.
We can do the same using the contenteditable attribute of those elements.^_^
1 | <head> |
Tip: It comes really handy with one-way binding situations with frameworks like Angular/React/Vue.\O/
Note:
contenteditableattribute is only available in HTML5 O_o