Insert line break inside placeholder attribute of a textarea?

You can insert a new line html entity 
 inside the placeholder attribute:

<textarea name="foo" placeholder="hello you&#10;Second line&#10;Third line"></textarea>

Works on:
Chrome 62, IE10, Firefox 60

Doesn’t work on:
Safari 11

https://jsfiddle.net/lu1s/bxkjLpag/2/

Leave a Comment