HTML contenteditable attribute
Examples
Editable paragraphs:
<P contenteditable = "true"> This is an edited paragraph. </ P>
try it"
Browser Support
All major browsers support contenteditable attribute
Definition and Usage
Are contenteditable attribute specifies the element content is editable.
Note: When an element is not set contenteditable property elements inherited from the parent element.
Differences between HTML 4.01 and HTML5
contenteditable attribute is the new HTML.
grammar
<Element contenteditable = "true | false">
Property Value
value | description |
---|---|
true | Specified element is editable |
false | Specified element is not editable |
HTML Global Attributes