media query valid media types code example
Example 1: print media query css
@media print {
/* All your print styles go here */
#header, #footer, #nav { display: none !important; }
}
Example 2: media query in html style
span { background-image: url(particular_ad.png); }
@media (max-width: 300px) {
span { background-image: url(particular_ad_small.png); }
}