Line Break & Horizontal Rule 1. Line Break (<br>) Definition The <br> tag is used to break a line and move the text to the next line without starting a new paragraph.
It is an empty tag (no closing tag). Commonly used in addresses, poems, and small text formatting . Syntax <br>
Example <p> Hello World<br> I am learning HTML<br> This is line three </p>
Output hello World I am learning HTML This is line three
Important Points <br> does not add space like a paragraph Used for line-level break only Avoid excessive use (bad for readability) Difference Between <br> and <p> <br> <p> Breaks line Creates paragraph No space Adds margin Inline Block-level
2. Horizontal Rule (<hr>) Definition The <hr> tag is used to draw a horizontal line across the webpage.
It separates content sections It is also an empty tag Syntax <hr>
Example <h1>hr tag in HTML</h1> <p>This is the paragraph 1</p>
<hr> <p>This is the paragraph 2</p>
Output
Use Cases Section separation Content division Visual clarity