Is it possible to do a line break inside a placeholder?

5

I would like to perform a line break inside the placeholder of a textarea, so you can set an example how users can fill it.

Is there any way to do this?

<textarea placeholder="Excelentíssimo Senhor
                       Professor Doutor"
          class="form-control" id="interessado">
</textarea>
    
asked by anonymous 15.08.2017 / 16:00

1 answer

6

It is possible using the entity wrapper wrapper wrapper .

<textarea placeholder="Excelentíssimo Senhor&#10;Professor Doutor"
          class="form-control" id="interessado" style="width: 500px; height: 150px;">
</textarea>
    
15.08.2017 / 16:04