Baseline Widely available
The HTMLStyleElement.media
property specifies the intended destination medium for style information.
A string describing a single medium or a comma-separated list.
ExamplesSuppose the <head>
contains the following:
html
<style id="inline-style" media="screen, print">
p {
color: blue;
}
</style>
Then:
js
const style = document.getElementById("inline-style");
console.log(style.media); // 'screen, print'
Specifications Browser compatibility
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4