X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML contenteditable Attribute


Example

An editable paragraph:

<p contenteditable="true">This is an editable paragraph.</p>

Try it Yourself »

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.


Browser Support

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

Attribute
contenteditable 4.0 5.5 3.5 3.1 9.6


Differences Between HTML 4.01 and HTML5

The contenteditable attribute is new in HTML5.


Syntax

<element contenteditable="true|false">

Attribute Values

Value Description
true Specifies that the element is editable
false Specifies that the element is not editable


Related Pages

HTML Tutorial: HTML Attributes

HTML DOM Reference: HTML DOM contentEditable Property



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook