MODULE 05 · INTERMEDIATE

Responsive Media, Modern Image Compression, Audio, and VideoHTML & Modern Web Development · Module 5

Deliver high-fidelity responsive media: resolution switching with srcset and sizes, art direction with <picture>, AVIF/WebP next-gen compression, and accessible video subtitles.

4 lessons16 min readingStructured Data, Responsive Media & SVG Systems
Free, self-paced, and open to everyone. No account needed.
WHAT THIS MODULE COVERS

Responsive Media, Modern Image Compression, Audio, and Video

Deliver high-fidelity responsive media: resolution switching with srcset and sizes, art direction with <picture>, AVIF/WebP next-gen compression, and accessible video subtitles.

BEFORE YOU START

HTML layout fundamentals.

WHAT YOU’LL BE ABLE TO DO

Deliver bandwidth-optimized responsive media using <picture>, srcset/sizes, next-gen AVIF/WebP compression, and WebVTT captions.

THE LESSON SEQUENCE

Read in order, or jump to what you need.

Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.

  1. 05.01
    Responsive Images: Resolution Switching (srcset/sizes) and Art Direction (<picture>)

    Master responsive images: resolution switching across varying device pixel ratios via srcset and sizes, and art direction cropping strategies using the <picture> element.

    4 min
  2. 05.02
    Next-Gen Image Formats: AVIF, WebP, and Progressive Fallbacks

    Optimize image delivery pipelines: AVIF (AV1 Still Image File Format), WebP, multi-format progressive enhancement with <picture type="...">, and compression trade-offs.

    4 min
  3. 05.03
    Native Audio, Video, and Accessible WebVTT Subtitles

    Embed native multimedia: <video> and <audio> elements, codec source negotiation (MP4/H.264, WebM/VP9), responsive poster frames, and accessible <track> WebVTT captions.

    4 min
  4. 05.04
    Performance Optimization: loading='lazy', decoding='async', and fetchpriority

    Fine-tune browser asset scheduling: native lazy loading (loading='lazy'), asynchronous rasterization (decoding='async'), and resource prioritization (fetchpriority='high').

    4 min
MODULE SELF-CHECK

Ready to move on?

Deploy a responsive hero banner with multi-format fallbacks and zero layout shift.

Open the module self-check