In contenteditable attribute there are three values are available. They are TRUE, FALSE, INHERIT.
contenteditable=”” or contenteditable=”true”
Indicates that the element is editable.
Indicates that the element is not editable.
Indicates that the element is editable if its immediate parent element is editable. This is the default value.
|true||Specifies that the element is editable.|
|false||Specifies that the element is not editable|
Here’s the above HTML in action:
This text can be edited by the user.
The contentEditable attribute is very easy method. If the contentEditable attributes is set as true that shows the HTML elements will become editable.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.