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
`
**Supported Browsers: The browsers supported by **HTML style media attribute are listed below:
- Google Chrome 1 and above
- Edge 12 and above
- Internet Explorer 3 and above
- Firefox 1 and above
- Apple Safari 1 and above
- Opera 3.5 and above