Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> h1 {color:#FF0000;} p {color:#0000FF;} body {background-color:#FFEFD6;} </style> <style media="print"> h1 {color:#000000;} p {color:#000000;} body {background-color:#FFFFFF;} </style> </head> <body> <h1>W3Schools Example</h1> <p><a href="tryhtml_style_media.html" target="_blank">Click here</a> to open this page in a new window (without the tryit part).</p> <p>If you print this page, or open it in print preview, you will see that it is styled with the media="print" stylesheet. The "print" stylesheet contains black text on white background.</p> </body> <!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml_style_media by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:24:11 GMT --> </html>
Result:
Try it Yourself - © w3schools.com