css strikethrough html text code example
Example 1: css text strike
h2 {
text-decoration: line-through;
}
Example 2: underline text using css
/* Using 'text-decoration' property with 'underline' value. we can draw underline below the text using css */
<style>
p {
text-decoration: underline;
}
</style>
<p>Hello all Welcome here !!!</p>
Example 3: css strikethrough html text
style="text-decoration: line-through;"
Example 4: how to underline font in css
h3 {
text-decoration: underline;
}