HTML | <style> media Attribute (original) (raw)

Last Updated : 6 May, 2025

The HTML style media attribute is used to specify the media or device the CSS style is optimized for. this attribute specify the style is for specific devices like print media or speech. This attribute can accept several values.

**Syntax:

<style media="print">
    h1 {
        color: green;
    }
</style>

GeeksforGeeks

Click here

`

**Supported Browsers: The browsers supported by **HTML style media attribute are listed below: