Role of media attribute on the LINK element

CSSWeb DevelopmentFront End Technology

The media attribute on the LINK element specifies the target media of an external style sheet −

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>
raja
Published on 27-Apr-2018 14:42:18
Advertisements