June 2025
Beginner
817 pages
31h 30m
English
Basically, the HTML element <audio> works in the same way as <video>, except that you use it to play audio files. Here, too, there are currently three formats: MP3 (MPEG-1/MPEG-2 Audio Layer III), OGG, and WAV (Waveform Audio File), which can be played without additional software using <audio>.
All modern web browsers can handle the MP3 format, and it should probably be the ideal choice apart from the OGG format. The WAV format might be the worst choice for the web most of the time due to the size of the file. If the browser doesn’t support the audio element, you can write text between <audio> and </audio> that will be displayed instead. As with <video>, you can provide all three formats ...
Read now
Unlock full access