HTML formatting Tags with Example

1/27/2018 01:49:00 am 0 Comments

 HTML formatting Tags with Example


Hello friends हमने आपको अपने पिछले Artical मे HTML के बारे मे बताया था और अब html के artical को आगे बढाते हुए बात करते है HTML Formatting Tags 

HTML में कुछ tags सिर्फ text formatting के लिए provide किये गए है। इन tags का इस्तेमाल करते हुए आप web page पर text की presentation और position को control कर सकते है। जैसे की आप text को bold या underline कर सकते है। किसी text editor में आप ये काम एक button click से कर सकते है लेकिन HTML में इसके लिए आप tags यूज़ कर सकते है। कुछ common formatting type है जो आप text पर apply करते है उसकी list निचे दी जा रही है।
  • Bold
  • Italic
  • Underline
  • Marked
  • Superscript 
  • Subscript
  • Small
  • Deleted

HTML <b> tag   
HTML के द्वारा किसी text को bold करने के लिए <b> tag यूज़ किया जाता है। इसके लिए आप starting और ending tags के beech में text को लिखते है।
<b> This text will be bolded. </b>

HTML <i> tag  
HTML में किसी text को italic बनाने के लिए <i> tag यूज़ किया जाता है। 

<i> This text will be italic. </i>
   

HTML <ins> tag 
किसी text को underline करने के लिए <ins> tag यूज़ किया जाता है। 

<ins> This text will be underlined</ins>
   
HTML <mark> tag
यदि आप किसी text को highlight करना चाहते है तो उसके लिए <mark> tag यूज़ कर सकते है।  

<mark> This text will be highlighted </mark>
   

HTML <sup> tag
किसी text को super script करने के लिए आप <sup> tag यूज़ कर सकते है।
<p> This is normal text<sup> This will be super scripted </sup> This is normal again </p>
  

HTML <sub> tag 
अगर आप text को subscript में लाना चाहते है तो उसके लिए आप <sub> tag यूज़ करेंगे।   

<p> This is normal text <sub> This text will be subscripted </sub></p>

HTML <small> tag
यदि आप किसी text को दूसरे text से छोटा रखना चाहते है तो इसके लिए आप <small> tag  यूज़ कर सकते है। कई editors ऐसा text को highlight करने के लिए भी करते है। 

<p> Normal Text <small> Smal Text </small> </p>
    

HTML <del> tag
किसी tag को deleted शो करने के लिए आप <del> tag का इस्तेमाल कर सकते है। जब किसी tag को deleted शो करते है तो उस text के through line show होती है। 

<p> <del> This text will be deleted</del></p>


इसका एक complete उदाहरण निचे दिया जा रहा है।
<html>
<head>
<title>Text Formatting</title>
</head>

<body>

<p>
<b> This text will be bolded. </b>
</p>

<p>
<i> This text will be italic. </i>
</p>

<p>
<ins> This text will be underlined</ins>
</p>

<mark> This text will be highlighted </mark>

<p> This is normal text<sup> This will be super scripted </sup> This is normal again </p>

<p> This is normal text <sub> This text will be subscripted </sub></p>

<p> Normal Text <small> Smal Text </small> </p>

<p> <del> This text will be deleted</del></p>

</body>

</html> 

Styling HTML text 

Text को style करने के लिए जैसे की उसका color change करना या font family change करना आदि के लिए CSS को यूज़ किया जाता है। CSS एक बड़ा topic है। इसके बारे में आप बाद में पढ़ सकते है। यँहा पर सिर्फ आपकी समझ के लिए कुछ styles का इस्तेमाल बताया जा रहा है। इसके लिए आप Style tag यूज़ करते है। और एक CSS property और उसकी values देते है। 

Changing text color 
किसी भी tag के text का color change करने के लिए आप CSS की color property यूज़ करते है। और इसके बाद colon लगाकर color का नाम देते है। 
   
<p style="color:red">This text will be red. </p>

Changing font family 
Text की font family change करने के लिए आप font family property यूज़ करते है और value के रूप में font family का नाम देते है।
<p style="font-family:Arial"> This text will be in Arial </p>

Changing text size 
Text की size change करने के लिए आप font size property यूज़ करते है और value के रूप में जो size आप चाहते है वह देते है।
<p style="font-size: 45"> This size is changed by style tag. </p>

Changing text position 
Text की position change करने के लिए text align property यूज़ की जाती है और value के रूप में आप left, right या center pass कर सकते है।
<p style="text-align="center"> This position is change by style tag</p>

इसका उदाहरण निचे दिया जा रहा है।
<html>
<head>
<title>Text Formatting</title>
</head>

<body>
<p style="color:red">This text will be red. </p>

<p style="font-family:Arial"> This text will be in Arial </p>

<p style="font-size: 45"> This size is changed by style tag. </p>

<p style="text-align:center">
This position is changed by style tag.
</p>

</body>

</html>
अगर आप को ये artical पसंद आए तो हमें comments के through जरूर बताऐ और इस Article को social media पर Share करें
Anonymous

Friends, if you like the information given on this site, then share this site on social media . Google

Comments (2)

Loading... Logging you in...
  • Logged in as
Oh great man. I have really enjoyed the nice piece of content that you have shared with us. Actually, marketing is really really not an easy job. I have tried once in my life and I never want to remember those days because I failed in marketing in a very bad manner. I don't know why I had happened but it's really a very bad experience for me. It's a fact that "The work suits in the hands of the one skilled to do it.". Anyways, guys I normally prefer to work with professionals only because they have the right experience of that market. Anyways, everyone has it's own experience and views about the matter but I normally prefer to work with professionals like redleos.com/pk/sms-marketing/. Thanks for sharing the nice piece of stuff with us.\
There are distinct 2019 digital marketing trends for businesses to consumers and vice versa. It is critical to remember that both the seller and the buyer have the same goal. Furthermore, many companies today use the same transactional platforms and methods. As a result, many consumer preferences apply to business-to-business transactions as well. https://seoactivators.com/ca/seo-services-calgary...

That is to say, it appears that business-to-business and business-to-consumer customer expectations are strikingly similar. Why? As a result, when B2B customers remove their suits, they transform into B2C customers. Customers typically make their first purchases at the B2C level. Furthermore, B2C shopping has always been more convenient and faster than B2B shopping. https://redleos.com/

Post a new comment

Comments by