HTML CSS Reference/HTML Attributes Reference/media

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

"media" Example

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



media is applied to

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



"media" Syntax and Note

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">