HTML Foundations·Practice drills 4

Drill 6: Make it smaller — Media and embeds

Write a smaller version of the example that keeps the core idea.

Beginner 5 min read Lesson 108 of 480 Challenge included
What you will be able to do
  • Write a smaller version of the example that keeps the core idea.

Practice task

Write a smaller version of the example that keeps the core idea.

media.htmlHTML
<figure>
  <img
    src="avatar-320.jpg"
    srcset="avatar-320.jpg 320w, avatar-640.jpg 640w"
    sizes="(min-width: 700px) 320px, 90vw"
    width="320"
    height="320"
    alt="Amina Rahman smiling at a desk"
    loading="lazy"
    decoding="async"
  />
  <figcaption>Amina Rahman, learning designer</figcaption>
</figure>

<video controls preload="metadata" poster="cover.jpg">
  <source src="intro.webm" type="video/webm" />
  <source src="intro.mp4" type="video/mp4" />
  <track kind="captions" src="intro.vtt" srclang="en" label="English" default />
</video>

<iframe
  src="https://example.com/embed"
  title="Course preview"
  loading="lazy"
></iframe>
Your turn

Write your answer

Easy

Write a smaller version of the example that keeps the core idea.

TEXT · starter
Your answer…
Study tools

Make it yours.

Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.

Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Lesson 108 of 480 · 0% of course