Pages that are only text feel flat, but media comes with costs: a missing description leaves some visitors with nothing, and an oversized image slows everyone down. Adding media well means thinking about accessibility, device size and file weight at the same time, not just getting something to appear on screen.
This module starts with the img element and its
core attributes, including alt text. It then covers
responsive images, using srcset and
sizes so each device downloads a suitably sized
file, along with related elements like picture and
figure. From there you'll add audio, video and
iframes to embed multimedia and external content, and
finish with inline SVG, including its pros and
cons compared with regular image files.
Watch the lessons in order, then continue on to Semantic Structure.
Shows how to add, optimize and properly structure images in HTML, covering the img tag along with its src, alt, width and height attributes.
Explains why responsive images matter for user experience and site speed, and how to use the picture and figure elements alongside srcset and sizes.
An introduction to working with the video, audio and iframe elements to embed multimedia and outside content in a page.
Demonstrates how to place an SVG directly into your page and weighs the pros and cons of inlining SVGs instead of linking them as image files.