top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Which property is used to underline, overline, and strikethrough text in CSS?

0 votes
1,498 views
Which property is used to underline, overline, and strikethrough text in CSS?
posted Jun 20, 2017 by Brajagopal Das

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

"Text-decoration" property is used for underline, overline, and strikethrough text in CSS.
The text-decoration property specifies the decoration to be added to the text.
The below code is used to add underline to all the words within the p tag

 p{
    text-decoration: underline;
    } 

The below code is used to add line above the text to all the words within the p tag.

p{
    text-decoration: overline;
}

The below code is user to strikethrough the text in p tag.

  p{
        text-decoration: line-through;
    }
answer Jun 21, 2017 by Satish Mn
...