Horje
HTML contenteditable Attribute

Definition and Usage

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.


Applies to

The contenteditable attribute is a Global Attribute, and can be used on any HTML element.

Element Attribute
All HTML elements contenteditable

Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.


How to add An editable paragraph

See the Example.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<p contenteditable="true">This is a paragraph. It is editable. Try to change this text.</p>

</body>
</html>

Output should be:

How to add An editable paragraph




html contenteditable attribute

Type:
Develop
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference