Placeholder for Content–Editable Elements

HTML
<div contenteditable placeholder="Lorem ipsum dolor sit amet…"></div>
CSS
div { border:1px solid; padding:1em; margin:1em; } [contenteditable][placeholder]:empty:before { content:attr(placeholder); display:block; opacity:.5; }
JAVASCRIPT
Expand for more options Login