What is the purpose of the CSS line-height property?
- Adjusts the space between characters in a text
- Controls the space between lines of text
- Sets the height of an inline element
- Specifies the height of a line of text
The line-height property in CSS defines the height of a line box, which is the space that a line of text occupies. It can be set using various units such as pixels or percentages and is crucial for controlling the vertical spacing in text.
Loading...
Related Quiz
- What is the primary goal of CSS minification?
- What CSS property is used to change the style of bullet points in an unordered list?
- A web page has a complex layout with various interactive elements. For a printer-friendly version, which CSS technique would be most effective in simplifying the layout and excluding certain elements?
- What is the use of the outline-offset property in CSS?
- A web designer is tasked with creating a website that is accessible to users with various disabilities. What CSS strategy should be employed to ensure that the website is navigable and readable by screen readers?