28
QuizMultiple Choice

Unit Test — Unit test

Question 28 • Introduction to Information Technology - EL3701 A

What statement best describes percentage values in CSS?

Answer
A
It's the fraction of the value that came before it.
B
It's the smallest controllable element on the screen.
C
It's always the width of an indent.
D
It's a value that is relative to the width of its HTML element or to the page.

Explanation

In CSS, a percentage is a relative value: its meaning depends on a reference size, often the width of a containing HTML element (and sometimes the page or another relevant dimension). For example, a width of 50% is half the reference width. So the best description is “a value that is relative to the width of its HTML element or to the page.”

AI-written and checked against the verified answer.

Previous
Next