Media-Dependent Style Sheets

In this lesson, we get to meet media dependent style sheets.

We'll cover the following

Most of the time you see web pages in front of your PC or notebook and the page is displayed in a browser. Sometimes, for example after check-in with your airline, you print a web page. You very likely have at least one mobile device, such as a smartphone or tablet, and use it to browse web pages.

Media types

The creators of CSS designed the recommendation with different ways and devices people might view websites in mind. To accommodate these different methods of surfing, they enabled CSS to create your own styles and style sheets that specifically target a particular media type.

The table below summarizes the media types supported by CSS3:

CSS media types

Get hands-on with 1400+ tech skills courses.