<p>How can i add a line break to the text area in a html page?
i use VB.net for server side coding.</p>

[{'answer_id': 66815, 'author': 'Loren Segal', 'author_id': 6436, 'author_profile': 'https://Stackoverflow.com/users/6436', 'pm_score': 5, 'selected': False, 'text': '<p>Add a linefeed ("\\n") to the output:</p>\n\n<pre><code>&lt;textarea&gt;Hello\n\n\nBybye&lt;/textarea&gt;\n</code></pre>\n\n<p>Will have a newline in it.</p>\n'}, {'answer_id': 66826, 'author': 'Forgotten Semicolon', 'author_id': 1960, 'author_profile': 'https://Stackoverflow.com/users/1960', 'pm_score': 2, 'selected': False, 'text': '<p>You could use <code>\\r\\n</code>, or <code>System.Environment.NewLine</code>.</p>\n'}, {'answer_id': 66827, 'author': 'Garry Shutler', 'author_id': 6369, 'author_profile': 'https://Stackoverflow.com/users/6369', 'pm_score': 1, 'selected': False, 'text': '<p>I believe this will work:</p>\n\n<pre><code>TextArea.Text = "Line 1" &amp; vbCrLf &amp; "Line 2"\n</code></pre>\n\n<p>System.Environment.NewLine could be used in place of vbCrLf if you wanted to be a little less VB6 about it.</p>\n'}, {'answer_id': 66842, 'author': 'SpoonMeiser', 'author_id': 1577190, 'author_profile': 'https://Stackoverflow.com/users/1577190', 'pm_score': 2, 'selected': False, 'text': "<p>In a text area, as in the form input, then just a normal line break will work:</p>\n\n<pre><code>&lt;textarea&gt;\nThis is a text area\nline breaks are automatic\n&lt;/textarea&gt;\n</code></pre>\n\n<p>If you're talking about normal text on the page, the &lt;br /&gt; (or just &lt;br&gt; if using plain 'ole HTML4) is a line break.</p>\n\n<p>However, I'd say that you often don't actually want a line break. Usually, your text is seperated into paragraphs:</p>\n\n<pre><code>&lt;p&gt;\n  This is some text\n&lt;/p&gt;\n&lt;p&gt;\n  This is some more\n&lt;/p&gt;\n</code></pre>\n\n<p>Which is much better because it gives a clue as to how your text is structured to machines that read it. Machines that read it include screen readers for the partially sighted or blind, seperating text into paragraphs gives it a chance of being presented correctly to these users.</p>\n"}, {'answer_id': 70108, 'author': 'user11334', 'author_id': 11334, 'author_profile': 'https://Stackoverflow.com/users/11334', 'pm_score': 2, 'selected': False, 'text': '<p>If you\'re inserting text from a database or such (which one usually do), convert all "<code>&lt;br /&gt;</code>"\'s to &amp;vbCrLf. Works great for me :)</p>\n'}, {'answer_id': 3149374, 'author': 'jonas', 'author_id': 380063, 'author_profile': 'https://Stackoverflow.com/users/380063', 'pm_score': 7, 'selected': True, 'text': "<p>If it's not vb you can use <code>&amp;#013;&amp;#010;</code> (ascii codes for cr,lf)</p>\n"}, {'answer_id': 43961322, 'author': 'Emu Malik', 'author_id': 7939706, 'author_profile': 'https://Stackoverflow.com/users/7939706', 'pm_score': 1, 'selected': False, 'text': '<p>Escape sequences like "\\n" work fine ! even with text area! I passed a java string with the "\\n" to a html textarea  and it worked fine as it works on consoles for java!</p>\n'}, {'answer_id': 51655678, 'author': 'Dice', 'author_id': 10157982, 'author_profile': 'https://Stackoverflow.com/users/10157982', 'pm_score': 1, 'selected': False, 'text': '<p>Here is my method made with pure PHP and CSS :</p>\n\n<pre><code>/** PHP code    */\n&lt;?php\n    $string = "the string with linebreaks";\n    $string = strtr($string,array("."=&gt;".\\r\\r",":"=&gt;" : \\r","-"=&gt;"\\r - "));\n?&gt;\n</code></pre>\n\n<p>And the CSS :</p>\n\n<pre><code>.your_textarea_class {\nstyle=\'white-space:pre-wrap\';\n}\n</code></pre>\n\n<p>You can do the same with regex (I\'m learning how to build regex with pregreplace using an associative array, seems to be better for adding the \\n\\r which makes the breaks display).</p>\n'}]
['https://Stackoverflow.com/questions/66773', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/747/']