Home >Web Front-end >CSS Tutorial >The role of media attributes on the LINK element

The role of media attributes on the LINK element

王林
王林forward
2023-09-05 08:01:061214browse

LINK 元素上媒体属性的作用

The media attribute on the LINK element specifies the target media for the 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>

The above is the detailed content of The role of media attributes on the LINK element. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete