Controlled input, onInput event, e.target.innerHTML, and more — In HTML, elements can be editable. By doing so the web page can be transformed into a rich text editor. Set the contenteditable attribute on an HTML element to make it editable. Basically, this page in Medium is a content editable element.