What is the way to specify media dependencies for style sheets ?

Specify the target medium from a style sheet with the @media or @import at-rules
Specify the target medium within the document language
both (A) and (B)
none of the mentioned

The correct answer is: C. both (A) and (B).

A media query is a CSS at-rule that specifies the presentation of a document or part of a document for a particular set of media. Media queries can be used to target different devices, such as screens, printers, and mobile phones.

To specify a media dependency for a style sheet, you can use the @media or @import at-rules. The @media at-rule allows you to specify a set of media types and then apply a style sheet to those media types. The @import at-rule allows you to import a style sheet from another file and apply it to the current document.

For example, the following CSS code specifies that the style sheet should be applied to screens:

@media screen {
body {
font-family: Arial, sans-serif;
font-size: 16px;
}
}

The following CSS code specifies that the style sheet should be applied to both screens and printouts:

@media screen, print {
body {
font-family: Arial, sans-serif;
font-size: 16px;
}
}

The following CSS code specifies that the style sheet should be applied to screens and printouts, but only if the screen resolution is greater than 1024×768:

@media screen and (min-width: 1024px) and (min-height: 768px) {
body {
font-family: Arial, sans-serif;
font-size: 16px;
}
}