CSS volume Property

CSSWeb DevelopmentFront End Technology

Volume refers to the median volume of the voice. It can have following values −

• numbers − Any number between '0' and '100'. '0' represents the minimum audible volume level and 100 correspond to the maximum comfortable level.
• percentage − These values are calculated relative to the inherited value, and are then clipped to the range '0' to '100'.
• silent − No sound at all. The value '0' does not mean the same as 'silent'.
• x-soft − Same as '0'.
• soft − Same as '25'.
• medium − Same as '50'.
• loud − Same as '75'.
• x-loud − Same as '100'.

Example

Let us see an example −

<style>
<!--
P.goat {
volume: x-soft
}
-->
</style>
Updated on 29-Jun-2020 07:12:20