CSS Text Decoration

CSS Text Decoration பற்றி கற்றுக்கொள்ளுங்கள்

CSS Text Decoration

CSS text-decoration பண்பு உரையில் அலங்கார கோடுகளின் தோற்றத்தை கட்டுப்படுத்த பயன்படுகிறது.

இது பின்வரும் தனிப்பட்ட பண்புகளுக்கான ஒரு சுருக்கப் பண்பாகும்:

உரைக்கு ஒரு Decoration Line சேர்க்கவும்

CSS text-decoration-line பண்பு உரையில் சேர்க்கப்பட்ட decoration line-ன் வகையை அமைக்கிறது.

இந்த பண்பு பின்வரும் மதிப்புகளில் ஒன்று அல்லது அதற்கு மேற்பட்டவற்றைக் கொண்டிருக்கலாம்:

💡 உதவிக்குறிப்பு:

உரையின் மேலும் கீழும் கோடுகளைக் காட்ட overline மற்றும் underline போன்ற பல மதிப்புகளை இணைக்கலாம்.

எடுத்துக்காட்டு

வெவ்வேறு வகையான decoration lines-ஐ அமைக்கவும்:

h1 {
  text-decoration-line: overline;
}

h2 {
  text-decoration-line: line-through;
}

h3 {
  text-decoration-line: underline;
}

p {
  text-decoration-line: overline underline;
}

⚠️ குறிப்பு:

இணைப்பு அல்லாத உரையை அடிக்கோடிட பரிந்துரைக்கப்படவில்லை, ஏனெனில் இது பெரும்பாலும் வாசகரை குழப்புகிறது!

Decoration Line-க்கு ஒரு நிறத்தை குறிப்பிடவும்

CSS text-decoration-color பண்பு decoration line-ன் நிறத்தை அமைக்க பயன்படுகிறது.

எடுத்துக்காட்டு

Decoration line-க்கு வெவ்வேறு நிறங்களை சேர்க்கவும்:

h1 {
  text-decoration-line: overline;
  text-decoration-color: red;
}

h2 {
  text-decoration-line: line-through;
  text-decoration-color: blue;
}

h3 {
  text-decoration-line: underline;
  text-decoration-color: green;
}

p {
  text-decoration-line: overline underline;
  text-decoration-color: purple;
}

Decoration Line-க்கு ஒரு பாணியை குறிப்பிடவும்

CSS text-decoration-style பண்பு decoration line-ன் பாணியை அமைக்க பயன்படுகிறது.

இந்த பண்பு பின்வரும் மதிப்புகளில் ஒன்றைக் கொண்டிருக்கலாம்:

எடுத்துக்காட்டு

Decoration line-க்கு வெவ்வேறு பாணிகளை சேர்க்கவும்:

h1 {
  text-decoration-line: underline;
  text-decoration-style: solid;
}

h2 {
  text-decoration-line: underline;
  text-decoration-style: double;
}

h3 {
  text-decoration-line: underline;
  text-decoration-style: dotted;
}

p.ex1 {
  text-decoration-line: underline;
  text-decoration-style: dashed;
}

p.ex2 {
  text-decoration-line: underline;
  text-decoration-style: wavy;
}

p.ex3 {
  text-decoration-line: underline;
  text-decoration-color: red;
  text-decoration-style: wavy;
}

Decoration Line-க்கு தடிமனை குறிப்பிடவும்

CSS text-decoration-thickness பண்பு decoration line-ன் தடிமனை அமைக்க பயன்படுகிறது.

எடுத்துக்காட்டு

Decoration line-க்கு வெவ்வேறு தடிமனை சேர்க்கவும்:

h1 {
  text-decoration-line: underline;
  text-decoration-thickness: auto;
}

h2 {
  text-decoration-line: underline;
  text-decoration-thickness: 5px;
}

h3 {
  text-decoration-line: underline;
  text-decoration-thickness: 25%;
}

p {
  text-decoration-line: underline;
  text-decoration-color: red;
  text-decoration-style: double;
  text-decoration-thickness: 5px;
}

சுருக்கப் பண்பு

CSS text-decoration பண்பு பின்வருவனவற்றுக்கான ஒரு சுருக்கப் பண்பாகும்:

எடுத்துக்காட்டு

h1 {
  text-decoration: underline;
}

h2 {
  text-decoration: underline red;
}

h3 {
  text-decoration: underline red double;
}

p {
  text-decoration: underline red double 5px;
}

CSS Text Decoration பயிற்சி

இந்த டுடோரியலில் உள்ள பல அத்தியாயங்கள் உங்கள் அறிவு நிலையைச் சரிபார்க்கக்கூடிய பயிற்சியுடன் முடிகின்றன.

இணைப்புகளிலிருந்து இயல்புநிலை அடிக்கோடை அகற்ற சரியான மதிப்பை இழுத்து விடவும்.

a {
  text-decoration: ;
}
remove
✗ தவறு!
none
✓ சரி!
0
✗ தவறு!
hidden
✗ தவறு!

அனைத்து CSS text-decoration பண்புகள்

பண்பு விளக்கம்
text-decoration ஒரே அறிவிப்பில் அனைத்து text-decoration பண்புகளையும் அமைக்கிறது
text-decoration-color text-decoration-ன் நிறத்தை குறிப்பிடுகிறது
text-decoration-line பயன்படுத்த வேண்டிய text decoration-ன் வகையை குறிப்பிடுகிறது (underline, overline, முதலியன)
text-decoration-style text decoration-ன் பாணியை குறிப்பிடுகிறது (solid, dotted, முதலியன)
text-decoration-thickness text decoration line-ன் தடிமனை குறிப்பிடுகிறது