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

Question: 1 / 400

Which CSS property controls the text size?

text-size

font-weight

font-size

The property that controls the text size in CSS is indeed font-size. This property allows you to specify the size of the text in various units, such as pixels (px), ems, rems, percentages, and more. Using font-size allows for precise control over how large or small the text appears on the webpage, which is essential for accessibility and design consistency.

Other properties listed, such as text-size, font-weight, and text-style, are not valid CSS properties for adjusting text size. text-size is not recognized in CSS; font-weight influences the thickness of the text (like boldness), and text-style would usually refer to different forms of word usage, but the correct property to adjust the size of text is font-size.

Get further explanation with Examzify DeepDiveBeta

text-style

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy