Media and Embeds
Responsive images, fast-loading media, audio and video with captions, safe iframes, inline SVG and a first look at canvas.
Text is light; pictures, sound and video are heavy. This phase teaches you to put media on a page the right way: images that download the right size for each screen, pages that don't jump while images load, video that plays where it's allowed to, and captions so everyone can follow along.
You'll also learn to embed other websites safely with <iframe> (maps, videos, widgets) and how to lock them down, draw sharp icons with inline SVG, and meet <canvas>, the drawing surface that JavaScript paints pixel by pixel.
Every example runs offline in the preview: the images are small SVG pictures written into the code itself, and the audio and video are generated by JavaScript, so nothing depends on a network connection.
Practise this phase
Hands-on exercises: write the code, see your page live, and press Check to have it tested automatically.