HTML and CSS Certification Practice Test 2025 - Free HTML and CSS Practice Questions and Study Guide

Question: 1 / 400

What CSS property is used to set the space between lines of text?

spacing

line-height

The CSS property that sets the space between lines of text is the line-height property. This property specifies the amount of space above and below inline elements, effectively determining the vertical spacing of lines of text within a block element. By adjusting the line-height, developers can enhance readability and control the overall aesthetic of text on a webpage.

Using the line-height property allows for the creation of a more visually appealing and legible text layout. It can take values in different formats, such as a number (which is multiplied by the font size), a length (like pixels or ems), or a percentage. This versatility makes it a crucial tool for precisely managing text presentation in web design.

Get further explanation with Examzify DeepDiveBeta

text-spacing

margin

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy