🔷 1. Introduction:
In HTML, the <br>
tag is used to insert a line break in text.
It helps move the content to a new line without starting a new paragraph.
This is useful when you want text to continue but shift to the next line.
🔷 2. Definition:
<br>
stands for “break”.
It is an empty tag (no closing tag).
It is used to break the line and move the next content to a new line.
🔷 3. Syntax:
Text line one.<br>
Text line two.
This will display “Text line one.” and “Text line two.” on separate lines.
🔷 4. Example (Code):
<p>
My name is Gopal.<br>
I love coding.<br>
I teach HTML.
</p>
🔷 5. Output:
My name is Gopal.
I love coding.
I teach HTML.
🔷 6. Real Life Example:
Suppose a student wants to write an address like this:
<p>
GSSS BAGAN<br>
KULLU<br>
Himachal Pradesh - 175101
</p>
Using <br>
makes each part appear on a separate line without creating multiple paragraphs.
🔷 7. Practical Notes:
<br>
is an empty tag, so it does not need a closing tag.- It is used inside paragraphs, headings, divs, etc.
- You can use multiple
<br>
tags for extra line gaps:
<p>This is line 1.<br><br>This is line 3.</p>
🔷 8. Advantages:
- Easy to use
- Quick way to break lines
- No need to start new paragraphs
- Works in all HTML versions and browsers
- Beginner-friendly
🔷 9. Limitations:
- Not meant for large content breaks
- Overuse can make layout messy
- CSS is better for spacing and formatting in modern design
IN HINDI : HTML का
<br>
टैग (लाइन ब्रेक टैग)
🔷 1. परिचय (Introduction):
HTML में <br>
टैग का प्रयोग लाइन ब्रेक देने के लिए किया जाता है।
यह किसी टेक्स्ट को नई लाइन पर ले जाने का काम करता है,
बिना नया पैराग्राफ शुरू किए।
🔷 2. परिभाषा (Definition):
<br>
का पूरा नाम है “break”- यह एक empty tag है यानी इसका कोई closing tag नहीं होता
- इसका उपयोग कंटेंट को नई लाइन पर लाने के लिए किया जाता है
🔷 3. सिंटैक्स (Syntax):
लाइन एक।<br>
लाइन दो।
यह ब्राउज़र में दो अलग-अलग लाइनों में दिखेगा।
🔷 4. उदाहरण (Example):
<p>
मेरा नाम गोपाल है।<br>
मुझे कोडिंग पसंद है।<br>
मैं HTML सिखाता हूँ।
</p>
🔷 5. आउटपुट (Output)
ममेरा नाम गोपाल है।
मुझे कोडिंग पसंद है।
मैं HTML सिखाता हूँ।
हर लाइन नई पंक्ति (new line) में दिखाई देगी।
🔷 6. वास्तविक जीवन उदाहरण (Real Life Example):
मान लीजिए कोई छात्र अपना पता लिखना चाहता है:
<p>
GSSS BAGAN<br>
DISTT KULLU<br>
हिमाचल प्रदेश – 175134
</p>
🔷 7. व्यावहारिक जानकारी (Practical Notes):
<br>
एक empty tag है, इसलिए इसे बंद करने की जरूरत नहीं- यह paragraph, heading, div आदि में इस्तेमाल हो सकता है
- अगर दो लाइन का गैप चाहिए, तो दो
<br>
टैग का प्रयोग कर सकते हैं:
<p>यह पहली लाइन है।<br><br>यह तीसरी लाइन है।</p>
🔷 8. लाभ (Advantages):
- प्रयोग में आसान
- लाइन बदलने का तेज़ तरीका
- नए पैराग्राफ की जरूरत नहीं
- HTML के सभी वर्जन और ब्राउज़र में काम करता है
- शुरुआती छात्रों के लिए उपयोगी
🔷 9. सीमाएँ (Limitations):
- बड़े कंटेंट ब्रेक के लिए सही नहीं
- ज़्यादा प्रयोग से लेआउट बिगड़ सकता है
- मॉडर्न डिजाइन में CSS ज्यादा अच्छा तरीका है spacing के लिए