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

Asked

Viewed 1,427 times

7

I would like to perform a line break within the placeholder from a textarea, for example how users can fill it.

Is there any way to do that?

<textarea placeholder="Excelentíssimo Senhor
                       Professor Doutor"
          class="form-control" id="interessado">
</textarea>

1 answer

7


It is possible using HTML Entity line-breaking &#10;.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.