Global Attributes

contenteditable="false"

Build a form with the HTML form generator

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

NameTypeDescription
contenteditablekeywordExplicitly 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>
HTML Reference