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

Code Example 1

style="text-decoration: line-through;"

Code Example 2

h1 {
  text-decoration: overline;
}

h2 {
  text-decoration: line-through;
}

h3 {
  text-decoration: underline;
}

h4 {
  text-decoration: underline overline;
}

Code Example 3

x {
  text-decoration: line-through;
}

Learn ReactJs, React Native from akashmittal.com