HTML Checking for Large Sites

Rocket Validator automatically checks your pages on the W3C Validator.

Bad value “X” for attribute “media” on element “link”: unrecognized media “X”.

The media attribute on a <link> element has not been recognized.

This attribute specified what media the linked resource is optimized for. As an example, the following will link a general stylesheet, and a specific one for printing:

<head>
  <link rel="stylesheet" type="text/css" href="general.css">
  <link rel="stylesheet" type="text/css" href="print.css" media="print">
</head>

Valid values for this attribute include:

  • all. Default, used for all media.
  • print. Used for printers and print previews.
  • screen. Used for computer, tablets or smartphone screens.

Learn more:

Related W3C validator issues

Still checking your large sites one page at a time?

Save time using our automated web checker. Let our crawler check your web pages on the W3C Validator.