new line in html string code example
Example 1: new line html
<!-- Code by Scratchy -->
<!-- Twitter: @S_cratchy-->
Line 1 of text
<br>
Line 2 of text
Example 2: how to make new line in html paragraph
<p>
Will Mateson<br />
Box 61<br />
Cleveland, Ohio<br />
</p>
Example 3: html put newline in text with \n
white-space: pre-line;
Example 4: html newline
1st line
<br>
2nd line
Example 5: html new line
<p>
Line Content
<!--A newline in the cource code won't make a new line in the ouput/webpage
In other languages you may be familiar with \n but in html we use the <br>
tag-->
<br>
New Line Content
</p>