HTML and CSS Certification Practice Test

Question: 1 / 400

Which CSS property is used to control the space between lines of text?

line-height

The CSS property that is used to control the space between lines of text is line-height. This property specifically defines the height of each line box within the text, effectively determining how much vertical space will be between the baselines of two adjacent lines of text.

By adjusting the line-height, you can improve readability, create a more open design, or fit more text into a confined area without compromising legibility. This property can take various values, such as a number (which acts as a multiplier of the font size), a length (like pixels or ems), or a percentage.

The other options do not influence line spacing directly. Font-style modifies the style of the text itself (like italic or normal), color changes the text color, and font-size controls the size of the characters, but none of these adjustments will create space between the lines of text themselves. Therefore, line-height is the correct choice for controlling the vertical spacing in a block of text.

Get further explanation with Examzify DeepDiveBeta

font-style

color

font-size

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy