1.

Which of the following CSS property is used to give a line over the text?(a) text-decoration: underline(b) text-decoration: overline(c) text-decoration: line-through(d) text-decoration: noneThis question was addressed to me in an international level competition.I'm obligated to ask this question of CSS Versions in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

Right answer is (b) text-decoration: overline

Explanation: Text-decoration is a CSS property used to decorate the text. The text-decoration property TAKES many values such as overline, underline, LINE-through, none, INHERIT, etc. Overline gives a line over the text. Underline value is used to add line under the text. None value defines a normal text. When one wants to give a line through the text, line-through value for text-property can be used.



Discussion

No Comment Found

Related InterviewSolutions