HTML MediaLesson 51Free preview
HTML Audio
This lesson is part of HTML · All levels
Summary
The <audio> element is used to play sound files such as music or live recordings on a page. Just like video, you can use controls, autoplay, loops, and some <source> for different formats. Support for formats such as MP3 and WAV is generally available in modern browsers.
Key points
- Playing audio files on the page (<audio>)
- MP3 is the most widely supported audio format
- Attribute controls, autoplay, loop are available as in the video
- Use some <source> as a backup format
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.