Name
volume — NN n/a IE n/a CSS 2
Synopsis
Inherited: Yes
For aural style sheets, sets the dynamic range (softness/loudness) of the spoken element. Because normal speech has inflections that prevent an absolute volume to apply at all times, the volume attribute sets the median volume.
CSS Syntax
volume:number|percentage|volumeConstant
Value
A volume number value is any number. A
value of zero should represent the minimum audible level for the
equipment and ambient noise environment; a value of
100 should represent the maximum comfortable level
under the same conditions. A percentage
value is calculated relative to the parent element’s volume
attribute setting. Alternative settings include the following
constants (and their representative values):
silent (no sound) | x-soft (0)
| soft (25) | medium (50) |
loud (75) | x-loud (100).
Initial Value
medium
Applies To
All elements.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access