Hosting Solutions
mobile_logo Table of Contents


The HTML contenteditable attribute specifies whether or not the content inside of the element is editable.

HTML Code Example

Make an element's content editable. <div id="div1" contenteditable>Content in div1...</div> <div id="div1" contenteditable="true">Content in div1...</div>

Possible Values

true - make the content editable. false - specify no content editing.

JavaScript Interfacing

This attribute can be applied to an element using JavaScript, and its value may be changed at any time using JavaScript. element.contentEditable = true; element.contentEditable = false;


Core Attributes