underline in css code example

Example 1: css underline color

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

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

Example 2: text-decoration css

h1 {
  text-decoration: overline;
}

h2 {
  text-decoration: line-through;
}

h3 {
  text-decoration: underline;
}

h4 {
  text-decoration: underline overline;
}

Example 3: css underline

text-decoration: underline;

Example 4: text underline hover css

a:hover {
  text-decoration: underline;
}

Example 5: line through in css

x {
  text-decoration: line-through;
}

Example 6: css text strike

h2 {
  text-decoration: line-through;
}

Tags:

Html Example