A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/HTMLStyleElement/media below:

HTMLStyleElement: media property - Web APIs

HTMLStyleElement: media property

Baseline Widely available

The HTMLStyleElement.media property specifies the intended destination medium for style information.

Value

A string describing a single medium or a comma-separated list.

Examples

Suppose 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