Introduction to Programming Using HTML and CSS — Question 35

Which CSS property is used to draw a line over text, through text, or under text?

Answer options

Correct answer: D

Explanation

The correct answer is D, text-decoration, which is specifically designed to apply lines over, through, or under text. Options A and B, font-family and font-style, pertain to the typography of the text rather than lines. Option C, text-overflow, is related to handling overflowed text and does not apply to drawing lines.