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²
इसे भी पढ़ें:-