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

CSS text-decoration-color से लिंक अंडरलाइन कलर कैसे बदलें?

CSS text-decoration-color का उपयोग टेक्स्ट-डेकोरेशन-लाइन के रंग को बदलने के लिए किया जाता है।

सिंटैक्स

CSS text-decoration-color प्रॉपर्टी का सिंटैक्स निम्नानुसार है:

Selector {    text-decoration-color: /*value*/ }

उदाहरण 1

निम्न उदाहरण CSS text-decoration-color प्रॉपर्टी को दर्शाते हैं।

<!DOCTYPE html> <html>    <head>       <style>          p {             background-color: gray;             margin: 4%;             font-size: 1.2em;             text-decoration: underline;             text-decoration-color: violet;          }       </style>    </head>    <body>       <p>          Y aserejé-ja-dejé De jebe tu de jebere seibiunouva majavi an de bugui an de güididípi       </p>    </body> </html>

इससे निम्न आउटपुट मिलता है:

CSS text-decoration-color से लिंक अंडरलाइन कलर कैसे बदलें?

उदाहरण 2 (लिंक पर)

<!DOCTYPE html> <html>    <head>       <style>          div, a {             margin: 4%;             font-size: 1.2em;             text-decoration: underline;             text-decoration-color: green;          }       </style>    </head>    <body>       <div>          Underlined demo text.          <a href=#>Hyperlink here!</a>       </div>    </body> </html>

इससे निम्न आउटपुट मिलता है:

CSS text-decoration-color से लिंक अंडरलाइन कलर कैसे बदलें?

  1. HTML में लिंक से अंडरलाइन कैसे हटाएं? HTML में लिंक से अंडरलाइन कैसे हटाएं?

    CSS text-decoration: none लिंक से अंडरलाइन हटाने के लिए CSS text-decoration: none प्रॉपर्टी को style एट्रिब्यूट के साथ उपयोग करें। उदाहरण <!DOCTYPE html> <html> <head> <title>HTML Text Decoration</title> </head> <body> <h2>About</h2>

  1. HTML में लिंक का रंग कैसे बदलें? HTML में लिंक का रंग कैसे बदलें?

    CSS color प्रॉपर्टी लिंक का रंग बदलने के लिए CSS color प्रॉपर्टी को style एट्रिब्यूट के साथ उपयोग करें। उदाहरण <!DOCTYPE html> <html> <head> <title>HTML Link Color</title> </head> <body> <h2>About</h2> <p>Our <a href=/about

  1. HTML में रिलेटिव URL से पेज लिंक कैसे करें? HTML में रिलेटिव URL से पेज लिंक कैसे करें?

    रिलेटिव URL अपनी ही वेबसाइट के पेजों को लिंक करने के लिए रिलेटिव URL उपयोग करें, जैसे /contact, /about_team। <a> टैग के href एट्रिब्यूट में पथ दें। <a> टैग के मुख्य एट्रिब्यूट्स: क्र.सं.एट्रिब्यूट और विवरण 1href - URL निर्दिष्ट करता है 2rel - वर्तमान और लिंक्ड डॉक्यूमेंट का संबंध (no