Challenge - 5 Problems
Thumbnail Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ rendering
intermediate2:00remaining
Thumbnail Image Size with Bootstrap
You have this Bootstrap thumbnail image code:
What will be the visual effect of the
<img src='img.jpg' class='img-thumbnail' alt='Sample'>What will be the visual effect of the
img-thumbnail class on the image?Bootsrap
<img src='img.jpg' class='img-thumbnail' alt='Sample'>
Attempts:
2 left
💡 Hint
Think about what a thumbnail usually looks like: a small framed picture.
✗ Incorrect
The Bootstrap
img-thumbnail class adds a border, some padding, and rounded corners to the image, making it look like a small framed thumbnail.❓ selector
intermediate2:00remaining
Bootstrap Class for Responsive Thumbnails
Which Bootstrap class should you add to an image to make it scale nicely on all screen sizes while keeping the thumbnail style?
Attempts:
2 left
💡 Hint
Bootstrap 5 uses
img-fluid for responsive images.✗ Incorrect
The
img-fluid class makes images scale with the parent container. Combined with img-thumbnail, it keeps the thumbnail style and makes it responsive.🧠 Conceptual
advanced2:00remaining
Accessibility for Image Thumbnails
Why is it important to include the
alt attribute on thumbnail images in Bootstrap?Attempts:
2 left
💡 Hint
Think about users who cannot see images.
✗ Incorrect
The
alt attribute gives a text description of the image. Screen readers read this text aloud, making the web accessible to users with vision impairments.❓ layout
advanced2:00remaining
Arranging Multiple Thumbnails with Bootstrap Grid
You want to display 4 thumbnail images side by side on large screens and stacked on small screens. Which Bootstrap classes should you use on the container and images?
Attempts:
2 left
💡 Hint
Bootstrap grid uses rows and columns with breakpoints like
lg and col-12 for full width on small screens.✗ Incorrect
Using
row and columns with col-lg-3 makes 4 equal columns on large screens. col-12 makes each image full width on small screens. img-thumbnail img-fluid styles images properly.📝 Syntax
expert2:00remaining
Identify the Error in Thumbnail Image Code
What error will this Bootstrap thumbnail image code cause?
<img src='photo.jpg' class='img-thumbnail img-fluid' alt>Bootsrap
<img src='photo.jpg' class='img-thumbnail img-fluid' alt>
Attempts:
2 left
💡 Hint
Check how attributes are written in HTML.
✗ Incorrect
The
alt attribute must have a value or be written as alt="". Writing just alt without value is invalid HTML and causes validation errors.