Global Attributes
contenteditable="false"
Explicitly prevents editing of this element and its inherited editable descendants unless editing is explicitly re-enabled. Useful for fixed labels inside an editor; it does not disable embedded interactive controls. Global enumerated attribute, not a Boolean attribute. Empty means true; missing or invalid inherits. Use a labeled textarea for ordinary form text when possible.
Formal Syntax & Structure
html syntaxhtml
contenteditable="false"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| contenteditable | keyword | Explicitly prevents editing of this element and its inherited editable descendants unless editing is explicitly re-enabled. Useful for fixed labels inside an editor; it does not disable embedded interactive controls. |
Working Example
Example Snippethtml
<div contenteditable="true"> Editable note <span contenteditable="false">Fixed label</span></div>