# <audio> elements must have a captions track

> Canonical HTML version: https://rocketvalidator.com/accessibility-validation/axe/4.7/audio-caption
> Attribution: Rocket Validator (https://rocketvalidator.com)
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

Make sure that the `kind` attribute in the `track` element is set to `captions`. Also, verify that the text content of the captions adequately communicates all relevant information from the audio element, including speaker identification, dialogue transcripts, musical cues, and sound effects.

Below is an example code that demonstrates the addition of two tracks, one in English and another in Spanish.

```html
<audio>
   <source src="conversation.mp3" type="audio/mp3">
   <track src="captions_en.vtt" kind="captions" srclang="en" label="english_captions">
   <track src="captions_es.vtt" kind="captions" srclang="es" label="spanish_captions">
</audio>
```

<h3>What this Accessibility Rule Checks</h3>

Checks the use of all HTML5 `<audio>` elements to ensure each contains a `<track>` element with the `kind` attribute value `captions`.
