how to add strikethrough in css code example

Example 1: css strikethrough

h1 {
  text-decoration: overline;
}

h2 {
  text-decoration: line-through;
}

h3 {
  text-decoration: underline;
}

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 text strike

h2 {
  text-decoration: line-through;
}

Example 4: css strikethrough html text

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

Example 5: how to underline font in css

h3 {
  text-decoration: underline;
}

Tags:

Css Example