Intrduction
Agar aapne HTML Text Formatting ka theory article padh liya hai, to ab time hai ise practically samajhne ka.
π Is tutorial me hum har formatting tag ko example aur output ke sath step-by-step seekhenge π
π° Step 1: Bold Text (<b> aur <strong>)
Bold text dikhane ke liye <b> aur <strong> tags use hote hain.
<b>This is Bold Text</b>
<strong>This is Important Text</strong>
π Output:
This is Important Text
π° Step 2: Italic Text (<i> aur <em>)
<i>This is Italic</i>
<em>This is Emphasized</em>
π Output:
This is Emphasized
π° Step 3: Highlight Text (<mark>)
<mark>This is Highlighted Text</mark>
π Output:
π° Step 4: Small Text (<small>)
<small>This is Small Text</small>
π Output:
π° Step 5: Deleted Text (<del>)
<del>₹500</del>
π Output:
π° Step 6: Inserted Text (<ins>)
<ins>New Price ₹300</ins>
π Output:
π° Step 7: Subscript (<sub>)
H<sub>2</sub>O
CO<sub>2</sub>
π Output:
CO2
π° Step 8: Superscript (<sup>)
X<sup>2</sup>
1<sup>st</sup>
π Output:
1st
π° Step 9: Multiple Formatting Combine Karna
<strong><em>Important Text</em></strong>
π Output:
π° Step 10: Real Paragraph Example
<p>
This is <strong>important</strong> text and
<em>highlighted</em> content.
Water formula is H<sub>2</sub>O and power is X<sup>2</sup>.
</p>
π Output:
This is important text and highlighted content. Water formula is H2O and power is X2.
π Step 11: SEO Friendly Formatting
- π Important keywords ke liye <strong> use karo
- π Emphasis ke liye <em> use karo
- π Over formatting avoid karo
π‘ Step 12: Best Practice Example
<p>
<strong>HTML</strong> ek markup language hai jo
<em>web pages</em> banane ke liye use hoti hai.
</p>
π Output:
HTML ek markup language hai jo web pages banane ke liye use hoti hai.
π― Conclusion
Ab aapne HTML text formatting ko practically seekh liya hai. Har tag ka use samajhkar aap apne content ko readable aur professional bana sakte ho.
Next: Ab apni skills strong karne ke liye HTML Text Formatting Practice Exercises jarur kare.
π Practice hi aapko expert banati hai π
No comments:
Post a Comment