Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

[WEB3] 1. Responsive

Total questions: 20

Worksheet time: 11mins

Name
Class
Date
1.

What should be filled in the blue circle?

a)

User preference style

b)

Viewport & Form factor

c)

Macro Layout

d)

Container styles

2.

What should be filled in the green circle?

a)

User preference style

b)

Viewport & Form factor

c)

Macro Layout

d)

Container styles

3.

What should be filled in the yellow circle?

a)

User preference style

b)

Viewport & Form factor

c)

Macro Layout

d)

Container styles

4.

What should be filled in the red circle?

a)

User preference style

b)

Viewport & Form factor

c)

Macro Layout

d)

Container styles

5.

What are the types of Media queries?

a)

screen

b)

print

c)

all

d)

size

6.

What are the features of Media queries?

a)

width, height

b)

prefers-reduced-motion,
prefers-reduced-data

c)

orientation

d)

aspect-ratio

e)

prefers-color-scheme

7.

Which is the correct way write a media queries combination?

a)

b)

c)

8.

Which one is using the correct syntax?

a)

@media (min-width: 400px){..}

b)

@media (width >= 400px){..}

c)

@media min-width: 400px {..}

d)

@media (min-width: 400){..}

9.

While coding, you should start with

a)

mobile first

b)

desktop first

10.

Why do we use em as a Media query unit?

a)

For accessibility: Both em and px are valid units, but em works better if the user changes the browser text size.

b)

For better performance: Em units are relative and cause the browser to recalculate layouts more efficiently than fixed px units in media queries.

c)

For consistency with page zoom: Em-based media queries scale breakpoints when users zoom the page (Ctrl +/-), while px does not, ensuring layouts adapt to zoom levels.

11.

"You can use any CSS length units in your media queries. If your content is mostly image-based,
[A] might make the most sense. If your content is mostly
text-based, it probably makes more
sense to use a relative unit that's based on text size, like [B]."

What should be filled in the [A] and the [B]?

a)

[A]: pixels
[B]: em or ch

b)

[A]: em or ch
[B]: pixels

12.

Except for em, which unit is also recommended to use for media queries?

a)

rems

b)

%

13.

User preferences include:

a)

Light/dark mode

b)

Reduced motion

c)

High contrast

d)

Screen resolution

14.

Which one uses the correct syntax for light-dark color function?

a)

b)

c)

15.

Which one uses the correct syntax for prefers-color-scheme css feature?

a)

b)

c)

16.
  • "- The user has not asked for reduced motion

    • - Animations and transitions are allowed

  • - This value evaluates as false

  • - Usually you don’t need to write it explicitly unless you want special behavior"
    This is about:

a)

@media (prefers-reduced-motion: no-preference) {...}

b)

@media (prefers-reduced-motion: reduce) {..}

17.
  • "- The user wants less motion

  • - Animations should be removed or minimized

  • - This value evaluates as true"
    This is about:

a)

@media (prefers-reduced-motion: no-preference) {...}

b)

@media (prefers-reduced-motion: reduce) {..}

18.

@media (prefers-reduced-motion){...} is the same as:

a)

@media (prefers-reduced-motion: no-preference) {...}

b)

@media (prefers-reduced-motion: reduce) {..}

19.

Which of these can be a value for the prefers-contrast feature?

a)

no-preference

b)

more

c)

less

d)

custom

20.

Which one uses the correct syntax for prefers-contrast css feature?

a)

b)

c)