HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The contenteditable attribute specifies whether the content of an element is editable or not."
The
contenteditable
attribute specifies whether the content
of an element is editable or not.
contenteditable
attribute is not set on an
element, the element will inherit it from its parent.
The
contenteditable
attribute is a Global Attribute, and can be used on any HTML element.
Element | Attribute |
---|---|
All HTML elements | contenteditable |
An editable paragraph:
<p contenteditable="true">This is an editable paragraph.</p>
The numbers in the table specify the first browser version that fully supports the attribute.
Attribute | |||||
---|---|---|---|---|---|
contenteditable | 4.0 | 6.0 | 3.5 | 3.1 | 10.1 |