HTML is a magical language that allows you to edit content on a webpage just by clicking or tapping on it. This can be done using the contenteditable attribute on a div element. There are some cool features like being able to add more bullets by pressing enter and enabling spell check. You can even edit form elements and pre-formatted text. However, there are some limitations such as not being able to add new elements or indent bullet points. Spell check depends on the installed dictionaries and saving changes is not native to the browser. Global attributes can be applied to any HTML5 element, except for media elements. Though there is a risk of someone editing the site maliciously, it can be done regardless of contenteditable. Despite some potential weirdness with different browsers, HTML’s contenteditable feature is a handy tool.
https://shkspr.mobi/blog/2022/01/edit-this-blog-post/