Ads by ProfitSence

Break line without using <br> tag in HTML / CSS.

Last Updated on Wednesday 5th Oct 2022

new line html

  • There are various ways to break the line without using <br> tag.
  • Use block-level elements to break the line without using <br> tag.

html new line without br

  • white-space: pre; It is used to make elements acts like <pre> tag.
					<div class="preDis">
    Hello World
    Hello World

					.preDis {
  white-space : pre;


Hello World Hello World

html new line without space

  • display: block; It sets the display property of elements to block.
    <span>Hello World</span>
    <span>Hello World</span>

					h2 span {
  display: block;


Hello WorldHello World