Code representation of HTML text tags including h1 to h6 paragraphs and span tags by Vivaa Technologies
Tutorials

HTML Text Tags Guide: Headings, Paragraphs, and Inline Elements

M
Maahi
30 September 2026 4 min read

जानिए HTML Text Tags जैसे Headings, Paragraphs और Span का सही usage। Vivaa Technologies के इस complete tutorial में सीखिए Block vs Inline text elements और SEO best practices.

HTML Text Tags Guide: Headings, Paragraphs, and Inline Elements

जब भी आप कोई Web Page design करते हैं, तो उसका सबसे बड़ा हिस्सा Text Data होता है। Text को सही तरीके से organize करने, page hierarchy maintain करने और search engines को content का structure समझाने के लिए सही HTML Text Tags का use करना बेहद essential है।

Vivaa Technologies के इस tutorial में आज हम सीखेंगे कि HTML Text Tags क्या हैं, इनके types क्या हैं, और एक professional web developer के रूप में इनका सही use कैसे किया जाता है।

HTML Text Tags क्या हैं?

HTML Text Tags ऐसे fundamental tags हैं जो आपके text content को structure, meaning और formatting provide करते हैं। वेब ब्राउजर इन tags को read करके समझता है कि कौन सा text main heading है, कौन सा paragraph है और कौन सा text inline link या note है।

HTML में Text Tags को मुख्य रूप से दो श्रेणियों में classify किया जाता है:

  • Block-Level Text Tags: ये tags new line से start होते हैं और available width का पूरा space occupancy लेते हैं, जैसे Headings और Paragraphs।

  • Inline Text Tags: ये tags same line में रहते हैं और केवल उतना ही space लेते हैं जितनी text content की length होती है, जैसे Span या Anchor tags।

Essential HTML Text Tags for Developers

आइए सबसे ज्यादा use होने वाले HTML Text Tags को step-by-step समझते हैं:

1. Heading Tags (<h1></h1> से <h6></h6>)

Heading tags आपके web page के structure और outline को define करते हैं। HTML में total 6 heading tags होते हैं:

  • <h1></h1>: यह page की main heading होती है। एक single HTML document में हमेशा केवल एक ही <h1></h1> tag use करना best practice मानी जाती है।

  • <h2></h2> से <h3></h3>: ये subheadings और section titles के लिए use किए जाते हैं।

  • <h4></h4> से <h6></h6>: ये deeper nested subsections या minor headings के लिए use किए जाते हैं।

2. Paragraph Tag (<p></p>)

Web page पर regular body text या blocks of words लिखने के लिए <p></p> tag का use किया जाता है। Browser हर paragraph के ऊपर और नीचे automatically थोड़ा margin add कर देता है ताकि content readable दिखे।

3. Line Break (<br />) और Horizontal Rule (<hr />)

  • <br />: यह बिना new paragraph बनाए single line break create करने के लिए use होता है।

  • <hr />: यह text topics के बीच visual separation या thematic break देने के लिए horizontal line draw करता है।

4. Span Tag (<span></span>)

<span></span> एक generic inline container tag है। इसका use text के किसी particular word या part को style करने या JavaScript से manipulate करने के लिए किया जाता है।

Practical Code Example

HTML

<h1>Mastering HTML Text Tags</h1>
<p>Understanding text tags is the first step toward becoming a Frontend Developer.</p>
<hr />

<h2>Block vs Inline Elements</h2>
<p>Headings and paragraphs are block-level elements.<br />
You can style specific words using the <span style="color:blue">span tag</span> inside a paragraph.</p>

SEO Best Practices for HTML Text Tags

  • Heading Hierarchy Maintain करें: Heading tags का level हमेशा sequential होना चाहिए (<h1></h1> के बाद <h2></h2>, फिर <h3></h3>)। Visual styling के लिए कभी भी heading tags को skip न करें।

  • Keyword Placement: अपने Primary Keywords को <h1></h1> और <h2></h2> tags में naturally include करें ताकि Search Engines आपके page topic को easily understand कर सकें।

  • Screen Reader Accessibility: Proper paragraph tags और semantic headings का use करने से visually impaired users के लिए screen readers आसानी से content navigate कर पाते हैं।

Conclusion

HTML Text Tags का सही knowledge आपके web pages को structured, accessible और SEO-friendly बनाता है। सही tags का selection आपके code cleanliness और user readability दोनों को multiply कर देता है।

यदि आप Full-Stack Web Development को zero से advance level तक, real-world projects और live mentorship के साथ पढ़ना चाहते हैं, तो Vivaa Technologies आपकी journey को आसान बनाने के लिए प्रतिबद्ध है। हमारे industry-aligned courses join करें और आज ही अपनी coding journey boost करें।

Tags
#HTML text tags#HTML headings guide#paragraph tag HTML#web development tutorial#frontend basics#Vivaa Technologies#HTML text tags#HTML headings guide#paragraph tag HTML#web development tutorial#frontend basics#Vivaa Technologies

Share this article