HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

media

Description

The media attribute for HTML specifies the applicable media.

Syntax

media="value"

Values

all

Matches all devices.

print

Matches printers, and devices intended to reproduce a printed display, such as a web browser showing a document in “Print Preview”.

screen

Matches all devices that aren’t matched by print.

Examples

1 · HTML · all

2 · HTML · print

3 · HTML · screen

4 · JS · all

5 · JS · print

6 · JS · screen