NANDHOO
.
Learning Paths
Dashboard
Sign In
Home
Dashboard
HTML5 Mastery: Structure, Semantics, Attributes, and Real Projects
Images, Figures, and Multimedia
Quiz
Chapter Quiz: Images, Figures, and Multimedia
Images and Multimedia Quiz
Complete this assessment with 100% score to master this chapter.
01
Which attribute is most critical for image accessibility and must always be present?
alt
width
sizes
loading
02
What does loading="lazy" on an <img> tag do?
Defers loading the image until it is near the viewport, speeding up initial page load
Permanently caches the image in the browser
Loads the image from a CDN
Reduces image quality to load faster
03
What is the purpose of the srcset attribute on an <img>?
Provides multiple image files at different widths so the browser downloads the most appropriate size
Sets the image source for a fallback browser only
Defines a set of CSS classes for the image
Enables video playback on the img element
04
Which element should you use to add captions to a <video> for accessibility?
<track kind="captions">
<caption>
<subtitle>
<label>
05
When using autoplay on a <video>, which attribute is almost always required for browser autoplay policies?
muted
controls
loop
poster
Submit Answers
Back to Lesson
Next Chapter