HTML Attributes
HTML media attribute
Specifies conditions under which a resource or metadata applies, such as a stylesheet's target media or a picture source's viewport condition. Applicable elements include: <link>, <meta>, <source>, <style>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.
Formal Syntax & Structure
html syntaxhtml
media="print"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| media | media query list | Specifies conditions under which a resource or metadata applies, such as a stylesheet's target media or a picture source's viewport condition. |
Working Example
Example Snippethtml
<link rel="stylesheet" href="print.css" media="print">