WeCodeAcademy

Images, Audio and Video

<img> shows pictures. <audio> and <video> play media, and the controls attribute adds play and pause buttons.

Examplehtml
Open in editor »

Always write meaningful alt text. It is read aloud by screen readers and shown when the image fails to load.

Quick check

Which attribute adds play and pause buttons to a video?

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.