- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to Change Link Underline Color using text-decoration-color CSS
The CSS text-decoration-color is used to change the color of text-decoration-line.
Syntax
The syntax of CSS text-decoration-color property is as follows −
Selector { text-decoration-color: /*value*/ }
Example
The following examples illustrate CSS text-decoration-color property.
<!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>
This gives the following output
Example
<!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>
This gives the following output
- Related Articles
- Animate CSS text-decoration-color property
- Set the color of the text decoration in CSS
- Setting Text Color using CSS
- How to set the color of the text-decoration with JavaScript?
- Text Decoration Using CSS
- Change Cursor Color with CSS caret-color
- Set the link color with CSS
- How to change the font color of a text using JavaScript?
- How to change text cursor color in Tkinter?
- How I can change alert message text color using JavaScript?
- How to change spinner text size and text color in Android App using Kotlin?
- How to change the selection color of text in IText using FabricJS?
- Setting the element's text color using CSS
- How to Change Placeholder Color for Textboxes in CSS
- How to change the Text color of Menu item in Android using Kotlin?

Advertisements