Easy Tutorial
❮ Prop Style Textalign Prop Iframe Width ❯

Audio volume Property

Audio Object

Example

Set the audio volume to 20%:


Definition and Usage

The volume property sets or returns the volume of the audio, from 0.0 (mute) to 1.0 (maximum).

Note: The <audio> element is new in HTML5.


Browser Support

All major browsers support the volume property.

Note: Internet Explorer 8 or earlier does not support this property.


Syntax

Return the volume property:

Set the volume property:

Property Values

Value Description
volumevalue Specifies the current volume of the audio. Must be a number between 0.0 and 1.0. Example values: 1.0 is the highest volume (default) <br> 0.5 is half volume (50%) <br> 0.0 is mute

Technical Details

Return Value: Numeric value, representing the volume of the audio.
Default Value: 1.0
--- ---
❮ Prop Style Textalign Prop Iframe Width ❯