HTML Basic Tags
Line Break Tag
The <br> tag moves the text after it onto a new line, without starting a new paragraph.
Syntax:
<p>
TechSnow<br>
Main Boulevard, Lahore<br>
hello@techsnow.com
</p>Output
TechSnow Main Boulevard, Lahore hello@techsnow.com
It is perfect for content where line breaks are part of the meaning: addresses, poems and song lyrics.
<br> vs <p>
<br> | <p> | |
|---|---|---|
| What it does | Breaks the line | Starts a new paragraph |
| Spacing | No extra space | Adds space above and below |
| Closing tag | None (empty tag) | </p> |