Module 04 of 11

Images & Media

Lessons

About This Module

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.

Lessons

4 videos
01

HTML Images Tutorial

Shows how to add, optimize and properly structure images in HTML, covering the img tag along with its src, alt, width and height attributes.

02

Responsive Images Using srcset and sizes

Explains why responsive images matter for user experience and site speed, and how to use the picture and figure elements alongside srcset and sizes.

03

Video, Audio and Iframes in HTML

An introduction to working with the video, audio and iframe elements to embed multimedia and outside content in a page.

04

How to Inline an SVG Element

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.