Textarea placeholder not appearing

The opening and closing tags for textarea must be on the same line, otherwise, a newline occupies it, the placeholder will therefore not be displayed since the input area contains a newline character.

good

<textarea></textarea>

bad

<textarea>
</textarea>

推荐阅读更多精彩内容