Sobre a Aula
Audio HTML Tags
When we talk about implementing audio on an HTML page, it is crucial to understand the specific tags related to the <audio> element.
These tags play a crucial role in defining and presenting audio content on your website.
3.7.1 <audio>: The Main Tag
The <audio> tag is the centerpiece when incorporating audio in HTML. It is within this tag that you encapsulate all information related to your audio file, from the file source to playback and display settings.
3.7.2 <source>: Specifying the Audio Source
Within the <audio> tag, the <source> tag is used to specify the origin of the audio file. It allows you to include multiple sources in different formats (such as MP3, WAV, and OGG), ensuring greater compatibility across browsers.
Tag | Description |
---|---|
<audio> | Sets the sound content |
<source> | Defines various media resources for media elements such as <video> and <audio> |
Entrar na conversa