The volume property is used for specifying the median volume of the wave form.
number − Any number in the range 0 - 100.
percentage − Percentage values are calculated relative to the inherited value of volume, and then clipped to the range 0 - 100 if necessary.
silent − No sound should be produced.
x-soft − Equivalent to the numeric value 0.
soft − Equivalent to the numeric value 25.
medium − Equivalent to the numeric value 50.
loud − Equivalent to the numeric value 75.
x-loud − Equivalent to the numeric value 100.
All the HTML elements.
object.style.volume = "50";
Here is the example −
<style type="text/css"> <!-- P.goat { volume: x-soft } --> </style>
Paragraphs with class goat will be very soft.