HTML <style> with media color-gamut
You are Here:
HTML <style> with media color-gamut
The color-gamut
value of the media attribute specifies the approximate range of colors that are supported by the user agent and output device.
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<head>
<style>
body{
color:black;
}
</style>
<style media="screen and (color-gamut: srgb)">
body{
color:#f4ae8a;
}
</style>
</head>
<body>
<p>Your device can support approximately the sRGB gamut or more.</p>
</body>
</html>
Devices Value
Value | Explanation |
---|---|
srgb | Specifies the output device can support approximately the sRGB gamut or more. |
p3 | Specifies the output device can support approximately the gamut specified by the DCI P3 Color Space or more. |
rec2020 | Specifies the output device can support approximately the gamut specified by the ITU-R Recommendation BT.2020 Color Space or more. |
Reminder
Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in HTML.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.