HTML contenteditable attribute
HTML Contenteditable attribute allows the user to edit the content. Every element can use this attribute.
The content inside every html element is editable because of 'contenteditable' attribute.
By default, div element is not editable . But it becomes editable by the contenteditable attribute.
Related Tags
The tags that support contenteditable attribute<section> tag
-
contenteditable attribute applies to all the child elements. In the following example, contenteditable is applied on the section element and all the child elements of section element become editable.