CSS Media Queries Flashcards

1
Q

What is a breakpoint in responsive Web design?

A

the point where the site’s content will adapt to the user’s screen, giving the best user experience possible.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the advantage of using a percentage (e.g. 50%) width instead of a fixed (e.g. px) width for a “column” class in a responsive layout?

A

fixed values such as PX will not adapt to different sized screens, messing up the user experience

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

If you introduce CSS rules for a smaller min-width after the styles for a larger min-width in your style sheet, the CSS rules for the smaller min-width will “win”. Why is that?

A

because the browser will hit the smaller numerical width first as it expands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Give two examples of media features that you can query in an @media rule.

A

min/max width, min/max height, and many more including orientation, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which HTML meta tag is used in mobile-responsive web pages?

A

meta tag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly