HTML CSS Reference/HTML Attributes Reference/media

Материал из Web эксперт
Перейти к: навигация, поиск

"media" Example

   <source lang="html4strict">
   

<HTML> <head><Title>Example For media</Title></head> <BODY> <link rel="stylesheet"

     href="yourfile.css" 
     type="text/css" 
     media="screen">This is alink</link>

</BODY> </HTML>


     </source>
   
  


media is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<link> <style> (not IE4) | +----------------+--------------------------------------------------------------+

     </source>
   
  


"media" Syntax and Note

   <source lang="html4strict">

Note:

This attribute sets the media type. The possible values include

   screen       display on the user"s computer screen, 
   print        display as a screen preview or in printed form, 
   all          include all media types.
   

Syntax:

<element media="value">


     </source>