Home >Web Front-end >CSS Tutorial >How to specify the target media type for a set of CSS rules
The media attribute on the Link element specifies the target media for the external style sheet -
<style> <!-- <!doctype html public "-//w3c//dtd html 4.0//en"> <html> <head> <title>link to a target medium</title> <link rel="stylesheet" type="text/css" media="print, handheld" href="foo.css"> </head> <body> <p>the body... </body> </html> --> </style>
The above is the detailed content of How to specify the target media type for a set of CSS rules. For more information, please follow other related articles on the PHP Chinese website!