Make a span item editable?

css, html

Solution

Just set `contenteditable` attribute as `true`

<span contenteditable="true">edit</span>

or simply add `contenteditable` only

<span contenteditable>edit</span>

Fiddle Demo

Problem

I am making a simple web app, in one part of it I want the user to be able to edit the text put up by me on the screen. The text is currently contained in a `<span>` element. How is it possible?

Original source

Related problems