CSS Media Queries & Responsive Layout Flashcards

1
Q

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

A

Width, orientation

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

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

A

Viewport meta tag

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

What is abreakpointin responsive Web design?

A

Breakpoint is where the media query rule works on.

It is the line where we choose to restructure the layout

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

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

A

Percentage takes the screen width into consideration; pixels are static and stays the same regardless of adjusting the screen size.

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

If you introduce CSS rules for a smallermin-widthafterthe styles for a largermin-widthin your style sheet, the CSS rules for thesmallermin-widthwill “win”. Why is that?

A

Because of CSS Cascade; specifically the source order component of the Cascade. Priority is given to CSS rules that are lower on the page.

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