155k views
5 votes
Which of the following is an advantage of using relative units of measurements over hard-coded measurements?

MCQ Options:
a. Relative units are fixed and do not change with the viewport.
b. Relative units adapt to different screen sizes and devices.
c. Hard-coded measurements are more flexible.
d. Hard-coded measurements are recommended for responsive design.

1 Answer

4 votes

Final answer:

Relative units of measurements provide the advantage of being adaptable to various screen sizes and devices, offering flexibility needed for responsive web design.

Step-by-step explanation:

An advantage of using relative units of measurements over hard-coded measurements is that relative units adapt to different screen sizes and devices. Unlike hard-coded measurements that are fixed, relative units allow for flexibility in design, which is particularly beneficial in responsive web design. This flexibility ensures that web content is easily viewable on various devices, from desktop computers to mobile phones, without needing to define multiple sets of sizes for each device.

User Perigon
by
8.2k points