This Website for Those Students who are searching for a platform to study online in their own Language Hindi, on this website they will learn all courses like IAS, programming, web designing, data science, and competitive exam preparation, etc.


HTML : Text Formatting

HTML - Text Formatting

HTML : Text Formatting





हेलो दोस्तों आज के इस Lession मे जानेंगे की HTML मे Text Formatting कैसे की जाती है HTML Text Formatting का मतलब ये

है की जैसे अगर आपको की Text को Bold, Italic, underline और superscript या subscript बनाना है तो आपको Text Formatting

Tag Use करना होगा , Text Formatting का उपयोग हम किसी text को अलग तरह से या बेहतर दिखने और के लिए Text Formatting का उपायों करते है
HTML मे लगभग 14 Text Formatting Tag options उपलब्ध हैं जिनकी मदत से आप अपनी जरूरत के हिसाब से use कर सकते हो तो अब

चलिए कुछ Important Tex/.t Formatting Tag के बारे में जानते है .



<b> and </strong > Elements



b और strong का use हम किसी टेक्स्ट को Bold दिखाने के लिए उपयोग करते है अब आप सोच रहे होंगे की दोनों same Output देते

है फिर अलग -2 use कैसे तो मे आपको बता दु भले ही दोनों काम सामान है पर ये दोनों जिस Paregraph या कोई text की

Importantce aur Weight की हिसाब से Use किया जाता है जैसे कोई text ज्यादा Important नहीं है तो हम b Tag का use कर सकते

है लेकिन अगर कोई Topic या text important है तो हम उसको Strong टैग में लिख सकते है



Example:

<b>This text is bold</b> <strong>This text is important!</strong>

Output

  

    
    This text is bold

    This text is important!


  


HTML </mark > Element



इस टैग का उपयोग text को हाइलाइट करने के लिए किया जाता है।

यदि आप किसी text को mark या हाइलाइट करना चाहते हैं, तो आपको </mark > Tag </mark > के भीतर सामग्री लिखना चाहिए।



Example

<p>Do not forget to buy <mark> milk</mark> today.</p>

Output
  

    

Do not forget to buy milk today.



Italic Text in HTML



HTML Document में शब्दों को तिरछा लिखने के लिए Italic Element का इस्तेमाल किया जाता है. Italic Element शब्दों को

अन्य शब्दों की तुलना में थोडा तिरछा कर देता है. Italic Element को इस प्रकार Define किया जाता है.



Example:

<i>this is italic line.</i>

Output:
   
    this is italic line.
   
  


Underline Text in HTML


आपको याद होगा जब आप School/College में Notes लिखते है/थे, तो महत्वपूर्ण शब्दों या पंक्ति के नीचे एक Line खींच देते

है. जिससे वह शब्द अलग दिखाई देता था. यहि कार्य HTML Document में Underline Element से किया जाता है. Underline

Element Text के नीचे एक आडि रेखा खींच देता है. इसे इस प्रकार Define किया जाता है.



Example:

<u>this line have under line.</u>

Output:
 
  this line have under line.
 


Deleted Text in HTML


Delete Element से Document से हटाए गए (Removed) शब्द को Define किया जाता है. जिस शब्द पर Delete Element Apply किया

जाता है. वह शब्द बीच में से एक आडि रेखा द्वारा कट जाता है.



Example:

<del>This Delete text</del>

Output:
   
    This Delete text
   
 


Superscript Text



यदि आप सामग्री को <sup> </sup > element में रखते हैं, तो superscript में दिखाया जाता है; इसका मतलब यह है कि यह

अन्य characters के ऊपर एक character की आधी ऊंचाई प्रदर्शित करता है।



Example:

<p>X <sub>2</sub></p>

Output:

  

    

X 2



Subscript Text



यदि आप सामग्री को <sub > ………….. </sub > तत्व के भीतर रखते हैं, तो इसे subscript में दिखाया जाता है; इसका अर्थ है कि यह

अन्य characters के नीचे एक character की ऊँचाई को आधा प्रदर्शित करता है।



Example:

<p>(X) <sub>2</sub></p>

Output:

  
  

        

(X) 2



Larger text


यदि आप अपने फॉन्ट साइज़ को बाकी text से बड़ा रखना चाहते हैं तो content को <big > ……… </big > के अंदर रखें। यह पिछले

font size एक point फॉन्ट साइज़ को बढ़ाता है।



Example:

<p>Hello <big>This is big</big></p>

Output:

      
   
        

Hello This is big



Smaller Text



यदि आप अपने फॉन्ट साइज को बाकी text से छोटा रखना चाहते हैं तो content को <small > ……… </small > टैग के अंदर डालें। यह

पिछले font size की तुलना में एक फ़ॉन्ट आकार को कम करता है।



Example: <p>Hello <small> this is small </small> </p>

Output:

   

    

Hello this is small

Previous
Next Post »

Quote

"Educationists should build the capacities of the spirit of inquiry, creativity, entrepreneurial and moral leadership among students and become their role model."

Dr. Abdual Kalam