CSS richness Property

The CSS richness property is used to set the richness or brightness of the statement or audio which will play or read.

Syntax:

richnes: number;

Parameters: This property accepts a single parameter as mentioned above and described below:

  • number: This parameter holds the value in an integer form between 0-100 for the richness applied on the audio or on the statement.

Example 1: In this example, we will set richness on the p tag’s element.

HTML



filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<head>
    <style>
        p {
            richness: 75;
        }
    </style>
</head>
  
<body style="text-align: center;">
    <h1 style="color: green;">GeeksforGeeks</h1>
  
    <p>CSS richness Property</p>
  
    <audio controls>
        <source src=
        type="audio/mp3">
    </audio>
</body>
  
</html>

chevron_right


Output: 

Example 2: In this example, we will use richness on the audio.

HTML

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<head>
    <style>
        audio {
            richness: 75;
        }
    </style>
</head>
  
<body style="text-align: center;">
    <h1 style="color: green;">GeeksforGeeks</h1>
  
    <p>CSS richness Property</p>
  
    <audio controls>
        <source src=
            type="audio/mp3">
    </audio>
</body>
  
</html>

chevron_right


Output: 

Supported Browsers: This property is deprecated in CSS3 so the major browsers are not supported by this property.




My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.