wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unit 7: Common HTML/CSS Size Units Reference

Total questions: 25

Worksheet time: 25mins

Name
Class
Date
1.

Which unit is an absolute unit that does NOT change based on parent size?

a)

em

b)

rem

c)

px

d)

%

2.

What does 1em depend on?

a)

Viewport width

b)

Parent element’s font size

c)

Root font size

d)

Browser zoom level

3.

Which unit is usually more predictable and recommended for responsive text?

a)

px

b)

em

c)

rem

d)

vh

4.

What unit represents 1% of the browser’s width?

a)

1em

b)

1vh

c)

1vw

d)

1rem

5.

What is the default value of 1rem based on?

a)

Parent element

b)

tag

c)

Root font size

d)

Screen resolution

6.

Which unit adjusts based on the size of the parent container and is often used for layout widths?

a)

rem

b)

%

c)

px

d)

vmin

7.

Which unit equals 1% of the browser’s height?

a)

1vw

b)

1vh

c)

1rem

d)

1px

8.

Which unit scales based on whichever is smaller: viewport width or viewport height?

a)

vmax

b)

rem

c)

vmin

d)

em

9.

Which unit is best for print and is rarely used in modern responsive web design?

a)

pt

b)

px

c)

%

d)

em

10.

If an element uses 2em and the parent is 16px, how large is the text?

a)

8px

b)

16px

c)

32px

d)

64px

11.

Explain the difference between em and rem.

4 lines
12.

Why might a designer choose px instead of a relative unit like em or rem?

4 lines
13.

When is it useful to use vw or vh units?

4 lines
14.

What does the % unit measure in CSS, and why is it useful?

4 lines
15.

Why is pt not commonly used for web design?

4 lines
16.

The unit px is considered an (a)   unit.

17.

The unit em depends on the (a)   element’s font size.

18.

The unit rem is based on the font size of the (a)   element.

19.

The % unit measures size relative to the (a)   element.

20.

The unit vw represents 1% of the browser’s (a)   .

21.

The unit vh represents 1% of the browser’s (a)   .

22.

The unit vmin uses whichever viewport dimension is (a)   .

23.

The unit vmax uses whichever viewport dimension is (a)   .

24.

The browser default font size (for rem) is usually (a)   pixels.

25.

The unit used mostly for printing and not common in responsive web design is (a)   .