Coding with Sanjay Official

🎯 Welcome to Coding With Sanjay Official – CODING Seekhne Ki Pehli Seedhi Yahin Se Shuru Karein πŸ’»

Frontend & Functionality

Java Script

Coming SoonπŸ”’

Type Script

Coming SoonπŸ”’

Monday, June 8, 2026

HTML Text Formatting Tags Tutorial (Step by Step Guide)

Intrduction

Agar aapne HTML Text Formatting ka theory article padh liya hai, to ab time hai ise practically samajhne ka.

HTML Text Formatting Tags Tutorial for Beginners

πŸ‘‰ 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 Bold Text
This is Important Text

πŸ”° Step 2: Italic Text (<i> aur <em>)


<i>This is Italic</i>
<em>This is Emphasized</em>

πŸ‘‰ Output:

This is Italic
This is Emphasized

πŸ”° Step 3: Highlight Text (<mark>)


<mark>This is Highlighted Text</mark>

πŸ‘‰ Output:

This is Highlighted Text

πŸ”° Step 4: Small Text (<small>)


<small>This is Small Text</small>

πŸ‘‰ Output:

This is Small Text

πŸ”° Step 5: Deleted Text (<del>)


<del>₹500</del>

πŸ‘‰ Output:

₹500

πŸ”° Step 6: Inserted Text (<ins>)


<ins>New Price ₹300</ins>

πŸ‘‰ Output:

New Price ₹300

πŸ”° Step 7: Subscript (<sub>)


H<sub>2</sub>O
CO<sub>2</sub>

πŸ‘‰ Output:

H2O
CO2

πŸ”° Step 8: Superscript (<sup>)


X<sup>2</sup>
1<sup>st</sup>

πŸ‘‰ Output:

X2
1st

πŸ”° Step 9: Multiple Formatting Combine Karna


<strong><em>Important Text</em></strong>

πŸ‘‰ Output:

Important Text

πŸ”° 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