Use the contenteditable attribute in HTML, to set whether the content of an element is editable or not.
Example
You can try to run the following code to learn how to implement contenteditable attribute in HTML. Keep the cursor in the editable content and you will be able to edit it.
<!DOCTYPE html> <html> <body> <p contenteditable = "true">This content is editable. Try to edit it.</p> <p>This is a normal content. It won't edit.</p> </body> </html>