Check out example codes for "css underline color". It will help you in understanding the concepts better.

Code Example 1

u
{
	text-decoration: underline;
  	text-decoration-color: red;
}
example of use: (in html)

<p>The word <u>CAT</u>, is underlined </p>

Code Example 2

p
{

   
text-decoration: underline;
 
text-decoration-color: red;

}

Learn ReactJs, React Native from akashmittal.com