Which CSS property controls the spacing between text lines?

Prepare for the CIW Web Design Specialist Exam with engaging quizzes and multiple-choice questions, each offering hints and detailed explanations. Master the fundamentals and excel in your certification journey!

The spacing between text lines in CSS is controlled by the line-height property. This property determines the amount of vertical space that appears between the lines of text within an element. When line-height is set, it affects how tightly or loosely the lines of text are spaced. A larger line-height value increases the space between lines, while a smaller value decreases it.

It's important to note that while letter-spacing adjusts the space between individual characters within a line of text, it does not influence the distance between lines. Text-indent is used to create indentation at the beginning of text paragraphs, and margin controls the spacing outside of an element, rather than the internal spacing between lines of text. Thus, for controlling line spacing specifically, line-height is the appropriate and correct choice.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy