<html>
<head>
<style>
@media screen {
body {
color: green;
}
}
@media print {
body {
color: black;
}
}
</style>
</head>
<body>
<h1>The @media Rule</h1>
<p>Use mediaqueries to set the text color to green when the document is displayed on the screen, and to black when it is printed.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_media by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:20 GMT -->
</html>