Free guides, interview Q&As, and job responsibility breakdowns — curated by industry veterans to help you crack MNC interviews
The <br> tag is used to break a line and move the text to the next line without starting a new paragraph.
<br>
<p>
Hello World<br>
I am learning HTML<br>
This is line three
</p>
hello World
I am learning HTML
This is line three
| <br> | <p> |
|---|---|
| Breaks line | Creates paragraph |
| No space | Adds margin |
| Inline | Block-level |
The <hr> tag is used to draw a horizontal line across the webpage.
<hr>
<h1>hr tag in HTML</h1>
<p>This is the paragraph 1</p><hr>
<p>This is the paragraph 2</p>
