Answers for "line breaks in html"

26

new line html

<!-- Code by Scratchy -->
<!-- Twitter: @S_cratchy-->

Line 1 of text
<br>
Line 2 of text
Posted by: Guest on February-03-2020
16

how to break the line in html

<p> I'm about to break the line <br> right there </p>
Posted by: Guest on June-24-2020
1

html with new line \n

<span style="white-space: pre-line">@Model.CommentText</span>
Posted by: Guest on July-09-2021
0

html line break

<body> 
<p>I want to <br> Break this line! </p>
<p>I want to <br><br> Break this line and want to give a line gap </p>
</body>
Posted by: Guest on February-03-2021
0

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>
Posted by: Guest on February-11-2021

Browse Popular Code Answers by Language