HTML Horizental and Break Line

HTML Horizental and Break Line

ยท

1 min read

Horizental line

  • The <hr> tag is used to create a horizontal line on the webpage. It is a self-closing tag.

Syntax of horizontal line

<p>This is paragraph</p>
<p>This is paragraph</p>
<p>This is paragraph</p>
<p>This is paragraph</p>
<p>This is paragraph</p>
<hr>
<p>This is paragraph</p>
<p>This is paragraph</p>
<p>This is paragraph</p>
<p>This is paragraph</p>
<p>This is paragraph</p>
<hr>
<p>This is paragraph</p>
<p>This is paragraph</p>
<p>This is paragraph</p>
<p>This is paragraph</p>
<p>This is paragraph</p>

Break line

  • The <br> tag is used to create a line break in the text, causing content to appear on a new line. It is a self-closing tag.

Syntax of break line

<p>
      Lorem ipsum dolor sit amet consectetur, adipisicing elit. <br />Assumenda
      nemo officia, praesentium id saepe nostrum. <br />Illum necessitatibus,
      blanditiis consequatur et laudantium iure tenetur assumenda laborum,
      <br />sint beatae dolorum dolore totam, voluptate quod <br />inventore
      maxime atque voluptates cum dolor vitae. <br />Inventore corporis in
      laboriosam doloribus molestias dignissimos ratione perferendis porroo
      debitis
</p>


Happy Learning

Thanks For Reading! :)

-SriParthu๐Ÿ’๐Ÿ’ฅ

ย