HTML Linking Resources Link 'media' attribute

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

<link rel="stylesheet" href="test.css" media="print">

Media specifies what style sheet should be used for what type of media. Using the print value would only display that style sheet for print pages.

The value of this attribute can be any of the mediatype values (similar to a CSS media query).



Got any HTML Question?