Which of the following media query describe output style portrait if height is greater than or equal to width, landscape if the opposite?

grid
monochrome
resolution
orientation

The correct answer is D. orientation.

A media query is a CSS rule that specifies how a document should be displayed on a particular device or screen size. The orientation media query is used to specify how a document should be displayed on a device that is in portrait or landscape mode.

The grid media query is used to specify how a document should be displayed on a device with a grid layout. The monochrome media query is used to specify how a document should be displayed on a device that is in black and white. The resolution media query is used to specify how a document should be displayed on a device with a particular resolution.

In this case, the orientation media query is the most appropriate choice because it specifies how a document should be displayed on a device that is in portrait or landscape mode. The other options are not relevant to the question because they do not specify how a document should be displayed on a device that is in portrait or landscape mode.

Exit mobile version