# Audio & Video — HTML Fundamentals: Structure, Forms and Accessibility

Source: https://www.skillbyai.com/en/html/html-audio-video

> Play audio and video natively with the video and audio elements, controls and multiple source formats.

## video and audio tags

The `controls` attribute shows play/pause/volume UI without any JavaScript.

```html
<video controls width="320">
  <source src="movie.mp4" type="video/mp4">
  Your browser doesn't support video.
</video>

<audio controls>
  <source src="song.mp3" type="audio/mpeg">
</audio>
```

## Multiple sources = fallback

Add several `<source>` tags with different formats — the browser plays the first one it supports.

**Quiz:** Which attribute shows built-in play/pause controls?

- [x] controls
- [ ] autoplay
- [ ] loop
- [ ] muted

*Answer:* controls. `controls` adds the browser's default playback UI.
