The HTMLStyleElement.media property specifies the intended destination medium for style information.
A string describing a single medium or a comma-separated list.
Suppose the <head> contains the following:
<style id="inline-style" media="screen, print">
p {
color: blue;
}
</style>Then:
const style = document.getElementById("inline-style");
console.log(style.media); // 'screen, print'