Embedding audio and video with HTML
The <video> element embeds a video in a page. Its src attribute gives the file, and controls adds play and pause buttons. The <audio> element works the same way for sound.
Understanding Embedding audio and video with HTML in Years 9–10 Data & Information
What it does: Without controls the viewer has no buttons to play or pause. Adding the controls attribute fixes this. Anything written between the opening and closing video tags is only shown when the browser cannot display the video. The <video> element embeds video. <img> is only for still images, so it can't play a clip. src (source) holds the file path for <audio> and <video>. href is used on links, not media. HTML uses <audio> for sound. There is no <sound> element, so the browser would ignore it. Video sites give you embed code, usually an <iframe>. A watch-page address isn't a video file, so <video src> can't play it.
Common mistakes: The closing tag has a spelling mistake. It must match the opening tag, so it should be </video>. The attribute that adds play and pause buttons is controls, with an s. It should be controls>.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 83–132) and word search (Modules 6–132).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
<video controls>Fill in the Blanks
Spot the Error
Student with a class code? Join your class →