[amp_mcq option1=”orientation” option2=”scan” option3=”resolution” option4=”none of the mentioned” correct=”option3″]
The correct answer is C. resolution.
A media query is a CSS rule that specifies how a web page should be displayed on a particular device. The resolution media query is used to specify how a web page should be displayed on a device with a particular screen resolution.
The orientation media query is used to specify how a web page should be displayed on a device with a particular screen orientation.
The scan media query is not a valid media query.
Here is a more detailed explanation of each option:
- A. orientation
The orientation media query is used to specify how a web page should be displayed on a device with a particular screen orientation. The orientation media query can be used to specify how a web page should be displayed on a device that is in portrait mode or landscape mode.
For example, the following CSS rule will cause a web page to be displayed in landscape mode on a device that is in landscape mode:
css
@media only screen and (orientation: landscape) {
body {
width: 100%;
height: 100%;
}
}
- B. scan
The scan media query is not a valid media query.
- C. resolution
The resolution media query is used to specify how a web page should be displayed on a device with a particular screen resolution. The resolution media query can be used to specify how a web page should be displayed on a device that has a high-resolution screen or a low-resolution screen.
For example, the following CSS rule will cause a web page to be displayed in high-resolution mode on a device that has a high-resolution screen:
css
@media only screen and (min-resolution: 1920px) {
body {
font-size: 16px;
}
}
- D. none of the mentioned
The none of the mentioned option is not a valid answer.