Reputation: 143
What code I should put like the below image?
Upvotes: 0
Views: 279
Reputation: 18090
Your usage indicates that you should use the <del>
and <ins>
tags. This actually gives your markup meaning, not just decoration.
I use <del>MAC</del> <ins>Microsoft</ins>!
It also happens that those tags add the styling that you want out of the box.
Sources:
Upvotes: 1
Reputation: 6587
You can use strike through, and underline-
.line-through{
text-decoration:line-through;
}
.underline
{
text-decoration:underline;
}
Upvotes: 1