HTML contenteditable eigenschap
- Previous page class
- Next page contextmenu
- Go back one level HTML Global Attributes
Definitie en gebruik
contenteditable
De eigenschap bepaalt of de inhoud van het element bewerkbaar is.
Opmerking: Als een element niet is ingesteld contenteditable
Wanneer een element een eigenschap van zijn ouder-element erfgenomen heeft, zal het element deze eigenschap hebben.
See also:
HTML tutorial:HTML attributes
HTML DOM reference manual:HTML DOM contentEditable attribute
Example
An editable paragraph:
<p contenteditable="true">This is an editable paragraph.</p>
Syntax
<element contenteditable="true|false">
Attribute value
Value | Description |
---|---|
true | Specifies that the element is editable. |
false | Specifies that the element is not editable. |
Browser support
The numbers in the table indicate the first browser version to fully support this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
4.0 | 6.0 | 3.5 | 3.1 | 10.1 |
- Previous page class
- Next page contextmenu
- Go back one level HTML Global Attributes