Mastering the Media: Complete HTML Course
Sobre a Aula

HTML audio element

To incorporate and play an audio file on a web page, you can use the HTML element called <audio>.

This element is specially designed to make it easy to include audio content on your pages.

By using the <audio> element, you can provide your website visitors with an auditory experience directly on the page, without the need to redirect them to another platform.

Next, we will explain how to use this element in a basic way to add audio files to your HTML page.

Example:

<audio controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
Entrar na conversa
Rolar para cima