top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

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

0 votes
191 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...