How to specify the target media within the document language with CSS



To specify the target media, use the media attribute −

Example

<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>
karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know


Advertisements