In HTML page we can edit any document. The javascript helps to overcome this problem. The contenteditable attribute helps whether the content of an element is editable or not.
In contenteditable attribute there are three values are available. They are TRUE, FALSE, INHERIT.
contenteditable=”” or contenteditable=”true”
Indicates that the element is editable.
contenteditable=”false”
Indicates that the element is not editable.
contenteditable=”inherit”
Indicates that the element is editable if its immediate parent element is editable. This is the default value.
Syntax
Attribute Values
Value | Description |
---|---|
true | Specifies that the element is editable. |
false | Specifies that the element is not editable |
Simple Example
Test
Here’s the above HTML in action:
Test
This text can be edited by the user.
The contentEditable attribute is very easy method. If the contentEditable attributes is set as true that shows the HTML elements will become editable.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.
I blog often and I really appreciate your content. Your article has truly peaked my interest. I am going to book mark your site and keep checking for new information about once a week. I subscribed to your RSS feed too.
Hi! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blog to
rank for some targeted keywords but I’m not seeing very good success.
If you know of any please share. Thank you!
You can read similar art here: Eco blankets
Hello there, I found your web site by means of Google
whilst searching for a related matter, your website came up, it appears
to be like great. I have bookmarked it in my google bookmarks.
Hello there, simply become aware of your weblog
via Google, and found that it’s truly informative.
I am going to be careful for brussels. I will appreciate in the event you
proceed this in future. A lot of people will
likely be benefited from your writing. Cheers!!