textarea placeholder=line break

$(' textarea').attr('value', 'This is a line \nthis should be a new line');. I have an MVC5 and EF6 web app which submits form values to a database. Here are some of the most important: form: Associates the textarea with a form. Then you could What you could do is add the text as value, which respects the line break . HTML5 Textarea Attributes. font-size). HTML5 introduced a few new attributes which can be used with textarea elements. how to line break on placholder of text area, What you could do is add the text as value , which respects the line break \n . HTML preprocessors can make writing HTML more powerful or convenient. the specs only have :placeholder-shown and not ::placeholder:placeholder-shown can still affect the styling of the placeholder text, since it’s a parent element (e.g. ; Note that :placeholder-shown is a pseudo class (it’s an element in a particular state) and ::placeholder is a pseudo element (a visible thing that isn’t really in the DOM). The