DEV Community

Chetan Singh
Chetan Singh

Posted on

How to make HTML content editable?

Ever wondered? Can we make HTML content editable when it runs on a browser? The answer is YES.
By using contenteditable attribute we can specify whether the content of an element will be editable or not.

Syntax:
<element contenteditable="true or false">
We can give any of two values 'true' or 'false'.
'True' tells that element is editable while 'false' specifies that element is not editable.

Let's see:

Image description

This is my first post. I would document my learning journey on this platform and I hope it will prove helpful for beginners as I, too, am a beginner.

HEART IT

Top comments (0)