An editable paragraph:
The contenteditable attribute specifies whether the content of an element is editable or not.
Note: When the contenteditable attribute is not set on an element, the element will inherit it from its parent.
The numbers in the table specify the first browser version that fully supports the attribute.
Attribute | |||||
---|---|---|---|---|---|
contenteditable | 4.0 | 5.5 | 3.5 | 3.1 | 9.6 |
The contenteditable attribute is new in HTML5.
Value | Description |
---|---|
true | Specifies that the element is editable |
false | Specifies that the element is not editable |
HTML Tutorial: HTML Attributes
HTML DOM Reference: HTML DOM contentEditable Property