Text Formatting Tags क्या है? – HTML

HTML में text formatting tags का उपयोग text को style और highlight करने के लिए किया जाता है। इन tags का इस्तेमाल करके हम text को bold, italic, underline, और दूसरे styles में दिखा सकते हैं। नीचे आपको formatting tags के बारें में बताया गया है:-

1. <b> Tag

<b> tag का उपयोग text को bold बनाने के लिए किया जाता है।

Example:

<p>This is a <b>bold</b> text.</p>

Output:

This is a bold text.

2. <i> Tag

<i> tag का उपयोग text को italic बनाने के लिए किया जाता है।

Example:

<p>This is an <i>italic</i> text.</p>

Output:

This is an italic text.

3. <u> Tag

<u> tag का उपयोग text को underline करने के लिए किया जाता है।

Example:

<p>This is an <u>underlined</u> text.</p>

Output:

This is an underlined text.

4. <mark> Tag

<mark> tag का उपयोग text को highlight करने के लिए किया जाता है।

Example:

<p>This is a <mark>highlighted</mark> text.</p>

Output:

This is a highlighted text.

5. <small> Tag

<small> tag का उपयोग text को छोटा (small) दिखाने के लिए किया जाता है।

Example:

<p>This is a <small>small</small> text.</p>

Output:

This is a small text.

6. <strong> Tag

<strong> tag का उपयोग text को important दिखाने के लिए किया जाता है। यह text को bold की तरह दिखाता है।

Example:

<p>This is a <strong>strong</strong> text.</p>

Output:

This is a strong text.

7. <em> Tag

<em> tag का उपयोग text को emphasize करने के लिए किया जाता है। यह text को italic की तरह दिखाता है।

Example:

<p>This is an <em>emphasized</em> text.</p>

Output:

This is an emphasized text.

8. <del> Tag

<del> tag का उपयोग text को strike-through दिखाने के लिए किया जाता है।

Example:

<p>This is a <del>deleted</del> text.</p>

Output:

This is a deleted text.

9. <ins> Tag

<ins> tag का उपयोग text को insert किया गया दिखाने के लिए किया जाता है। यह text को underline करता है।

Example:

<p>My name is <ins>Yugal</ins>!</p>

Output:

My name is Yugal!

10. <sub> Tag

<sub> tag का उपयोग subscript दिखाने के लिए किया जाता है।

Example:

<p>H<sub>2</sub>O is water.</p>

Output:

H₂O is water.

11. <sup> Tag

<sup> tag का उपयोग superscript दिखाने के लिए किया जाता है।

Example:

<p>E = mc<sup>2</sup></p>

Output:

E = mc²

इसे भी पढ़ें:-

Summary (सारांश)

HTML में Text Formatting Tags वे टैग्स हैं जिनकी मदद से हम अपने वेब पेज पर text को अलग-अलग style और look दे सकते हैं। इस सामग्री में आपको वे सभी मुख्य formatting tags विस्तार से समझाए गए हैं जो किसी भी वेब डिज़ाइनर या डेवलपर को जानने चाहिए। इसमें और (bold के लिए), और (italic के लिए), (underline), (highlight), , (strike-through), और (inserted text) जैसे टैग्स के उपयोग और उदाहरण दिए गए हैं। इस article को पढ़कर छात्र न सिर्फ HTML में text को visually appealing बनाना सीखेंगे, बल्कि उन्हें यह भी पता चलेगा कि सिमैंटिकली सही टैग जैसे और का इस्तेमाल कब और क्यों किया जाता है। यह ज्ञान वेब डेवलपमेंट की बुनियाद को मजबूत करता है। परीक्षा की तैयारी के लिहाज से यह बहुत महत्वपूर्ण है क्योंकि:

  • HTML के formatting tags से अक्सर MCQ और कोडिंग प्रश्न पूछे जाते हैं।
  • सिमैंटिक टैग्स (जैसे vs ) का अंतर समझना theory और practical दोनों के लिए जरूरी है।
  • सभी टैग्स के syntax और output को याद रखना आसान हो जाता है, जिससे आप कॉन्सेप्ट को जल्दी revise कर सकते हैं।

Leave a Comment