what is the use of contenteditable attribute? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

what is the use of contenteditable attribute?

29th Jul 2017, 5:20 PM
Alexander Hollauf
Alexander Hollauf - avatar
2 Answers
+ 10
The contenteditable attribute specifies whether the content of an element is editable or not. When it's not set on an element, the element will inherit it from its parent. <p contenteditable="true">This is an editable paragraph.</p>
29th Jul 2017, 5:25 PM
Dev
Dev - avatar
+ 2
Thank you Dayve for your help.
29th Jul 2017, 5:28 PM
Alexander Hollauf
Alexander Hollauf - avatar