/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: media

[this page | pdf | back links]

The HTML media attribute specifies the media or device that the linked document is optimised for. It applies to <a>, <area>, <link>, <source> and <style> elements.

 

Valid attribute values (when used with <a>, <area>, <link>, <source> and <style> elements) include:

 

Value

Description

media-query

Indicates the media or device type the target URL is optimised for

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile