css-media-queries Flashcards

1
Q

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

A

max-width - apply styles when the viewport is equal to or less than a specified value.

Orientation - allows you to apply styles based on the orientation of the device. i.e. portrait or landscape

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

the viewport meta tag is used to control the behavior of the viewport, which is the area of the browser window used to display a web page. This meta tag tells the browser how to adjust the dimensions and scaling of the page to ensure that it is displayed correctly on a variety of devices with different screen sizes and resolutions.

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