Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> JavaScript

CSS में font-weight गुण का उपयोग

font-weight गुण का उपयोग फ़ॉन्ट को कितना बोल्ड या हल्का दिखाना है, यह नियंत्रित करने के लिए किया जाता है। यह फ़ॉन्ट की बोल्डनेस निर्दिष्ट करने की कार्यक्षमता प्रदान करता है। संभावित मान: normal, bold, bolder, lighter, 100 से 900 तक।

<html>
  <head>
  </head>
  <body>
    <p style="font-weight:bold;">This font is bold.</p>
    <p style="font-weight:bolder;">This font is bolder.</p>
    <p style="font-weight:300;">This font is 500 weight.</p>
  </body>
</html>

सुधार: तीसरे पैराग्राफ़ में मान 300 है लेकिन टेक्स्ट "500 weight" कहता है; सही मान 500 होना चाहिए।

  1. - CSS में border-right-style गुण का उपयोग

    border-right-style गुण दाएं बॉर्डर की शैली बदलता है। निम्न कोड चलाकर border-right-style गुण लागू करें: उदाहरण <html> <head> </head> <body> <p style=border-width:4px;border-right-style:dashed;> This is demo content </p> </body> </html

  1. - CSS में border-left-width गुण का उपयोग

    border-left-width गुण बाएं बॉर्डर की चौड़ाई बदलता है। निम्न कोड चलाकर border-left-width गुण लागू करें: उदाहरण <html> <head> </head> <body> <p style=border-left-width:6px;border-style:solid;> This is demo content. </p> </body> </html&

  1. - CSS list-style-type गुण का उपयोग

    list-style-type आपको मार्कर के आकार या उपस्थिति को नियंत्रित करने की अनुमति देता है। निम्न कोड चलाकर list-style-type गुण लागू करें: उदाहरण <html> <head> </head> <body> <ul style=list-style-type:circle;> <li>India</li> <li>Australi