volume
Definition
The volume property is used to indicate the average volume of sound. For example, a designer might use this property to indicate to a user agent, such as a browser, the average volume to be used when a Web page is spoken.
Example
p {volume: 50}p.notice {volume: loud}
Characteristics
Possible values
- number
- Any number between
0 and 100, with 0 representing the minimum audible volume level and 100 delimiting the maximum comfortable volume level. - percentage
- Percentage values are calculated relative to the inherited value, and are then clipped to the range
0 to 100. silent- No sound at all.
x-soft- This value is equivalent to
0. Note that the value 0 does not mean the same as silent, since 0 is the average volume. soft- This value is equivalent to
25. medium- This value is equivalent to
50. loud- This value is equivalent to
75. x-loud- This value is equivalent to
100. inherit- Use the same computed value as the parent element for this property.
Default value
medium
Applies to
All elements
Inherited
Yes