Recall & Review
beginner
What is an image thumbnail in web development?
An image thumbnail is a smaller version of a larger image. It helps pages load faster and shows a preview without using much space.
Click to reveal answer
beginner
How do you create a thumbnail using Bootstrap?
Use the <code>img-thumbnail</code> class on an <code><img></code> tag. This adds a border and padding to make the image look like a thumbnail.Click to reveal answer
intermediate
Why should thumbnails be responsive?
Responsive thumbnails adjust their size on different screen sizes, so they look good on phones, tablets, and desktops without breaking the layout.
Click to reveal answer
beginner
What Bootstrap class helps make images responsive?The <code>img-fluid</code> class makes images scale nicely to the parent container's width, keeping them responsive.Click to reveal answer
beginner
How can you add accessibility to image thumbnails?
Add descriptive
alt text to the <img> tag so screen readers can explain the image to users who cannot see it.Click to reveal answer
Which Bootstrap class adds a border and padding to create a thumbnail effect?
✗ Incorrect
The
img-thumbnail class adds a border and padding to make the image look like a thumbnail.What class should you add to make an image scale nicely on all screen sizes?
✗ Incorrect
The
img-fluid class makes images responsive by scaling them to the width of their container.Why use thumbnails instead of full-size images on a webpage?
✗ Incorrect
Thumbnails save space and help pages load faster by showing smaller versions of images.
Which attribute is important for accessibility on image thumbnails?
✗ Incorrect
The
alt attribute provides descriptive text for screen readers.If you want a thumbnail image to adjust size on mobile devices, what should you do?
✗ Incorrect
Using both
img-thumbnail and img-fluid makes the image look like a thumbnail and stay responsive.Explain how to create a responsive image thumbnail using Bootstrap and why it is useful.
Think about combining style and responsiveness classes.
You got /4 concepts.
Describe how to make image thumbnails accessible for all users.
Accessibility means helping users who rely on screen readers or have vision challenges.
You got /4 concepts.