I am sure that some of you have seen the following:
<link rel="stylesheet" src="styles.css" media="screen,projection" /> <link rel="stylesheet" src="styles.css" media="print" />
Or something else...
But what does a media attribute actually do? I created several websites, and I never used multimedia attributes when linking style sheets. This is mistake?
Thanks Amit
w3 can explain this best.
Media types are related to which media should be used to view the page.
- , CSS print media CSS. - , CSS print , .
print
- , - , .
- -.
- . , .
media ; , . media "screen"; , .
", "; , , .
W3C (, CSS).
, .
See http://www.w3.org/TR/CSS21/media.html . This functionality has been enhanced with media queries: http://www.w3.org/TR/css3-mediaqueries/ .
Source: https://habr.com/ru/post/1757572/More articles:Background task in Liftweb - scalagetting the name of the called function - c ++Printing array elements - cWinForms ListView draws HELL SLOW on Windows 7 compared to XP - performanceC # WebClient memory usage - c #Writing perl6 programs with Rakudo Star: Cannot be installed on OS X - perlHow can I process text in AS3 simply? - flashOptimizing the query model and / or data for a calendar application - c #Java code and JIT compilation - javaHow to get Eclipse Perspective ID? - eclipseAll Articles