CSS volume property

CSS volume property

Description

The volume property is used to specify the intermediate volume of a waveform.

Possible values

  • **number** – Any number between 0 and 100.
  • **percentage** – Percentage values ​​are calculated relative to the inherited volume value and clipped to the range of 0 to 100 if necessary.


  • silent – No sound should be produced.

  • x-soft – Equivalent to a value of 0.

  • soft – Equivalent to a value of 25.

  • medium – Equivalent to a value of 50.

  • loud – Equivalent to a value of 75.

  • x-loud – Equivalent to a value of 100.

Applies to

All HTML elements.

DOM Syntax

object.style.volume = "50"; 

Example

Here is an example:

<style type="text/css"> 
<!-- 
P.goat { volume: x-soft } 
--> 
</style> 

Paragraph with class attribute **goat** Very soft.

Leave a Reply

Your email address will not be published. Required fields are marked *