JSFiddle - React, Tailwind, and code Playground
HTML
<h2> <u> This is underlined using the u tag. </u> </h2>
<p class="firstUnderline"> This is underlined using CSS text-decoration </p>
<p class="SecondUnderline"> One more Using CSS text-decoration complete </p>
<p class="ThirdUnderline"> One more Using CSS text-decoration-line.</p>
<p class="UnderlineOverline"> One more Using CSS but this time overline also. </p>
CSS
.firstUnderline{
text-decoration:underline
}
.SecondUnderline{
text-decoration:underline wavy green
}
.ThirdUnderline{
text-decoration-line:underline;
}
.UnderlineOverline{
text-decoration: underline overline;
}